问题-解决
码中白马
这个作者很懒,什么都没留下…
展开
-
onnx转ncnn报错Shape not supported yet! Gather not supported yet # axis=0 Unsupported unsqueeze axes ! U
onnx转ncnn报错Shape not supported yet! Gather not supported yet # axis=0 Unsupported unsqueeze axes ! Unknown data type 0# 在将pt模型转为onnx之后,将onnx转成ncnn./onnx2ncnn ~/projects/pytorch-classification/mobilenet.onnx mobilenet.param mobilenet.bin# 如果网络结构中用到了resh原创 2021-03-09 15:36:44 · 4477 阅读 · 8 评论 -
摄像头视频推流
安装SYSStep 1:get SRS git clone https://github.com/ossrs/srs cd srs/trunk Step 2:build SRS, Requires Centos6.x/Ubuntu12 32/64bits, others see Build(CN,EN). ./configure && make Step 3: start SRS ./objs/srs -c conf/srs.conf推流f.原创 2021-01-29 12:17:13 · 788 阅读 · 0 评论 -
ssh配置免密
使用ssh-keygen生成密钥,将公钥文件上传至目标机器即可实现免密登陆,使用命令生成密钥:ssh-keygen -t rsa -C 'comment'-t rsa: 指定使用 rsa加密;-C: 添加备注, 备注会加到公钥文件最后,方便区分;运行命令会有交互输入,全部使用默认值直接回车就行,默认会在家目录的.ssh/文件夹下生成四个文件:authorized_keys: 存放远程免密登录的公钥,主要通过这个文件记录远程机器的公钥。id_rsa: 生成的私钥文件id_rsa.pub: 生原创 2021-01-29 12:14:05 · 184 阅读 · 0 评论 -
Ubuntu16.04安装vmware出现“Cannot open /dev/vmmon: No such file or directory“ 的解决方法(不disable secure boot)
使用openssl生成rsa2048公钥对,将来用于对 vmmon 和 vmnet模块进行签名:$openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj “/CN=VMware/”这里MOK 是你生成的公钥对的名字,可以修改,会生成俩文件,MOK.der和MOK.priv,发布者为"/CN=VMware/"签名:$sudo /usr/.原创 2021-01-29 12:12:51 · 675 阅读 · 2 评论 -
在Linux下安装Google浏览器
对于谷歌Chrome32位版本,使用如下链接:wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb对于64位版本可以使用如下链接下载:wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb下载完后,运行如下命令安装。sudo dpkg -i google-chrome*; sudo apt-.原创 2021-01-29 12:11:07 · 901 阅读 · 0 评论 -
在pytorch中要对图像进行翻转fliped = hflip_batch(batch) 要求输入的batch的类型为torch.float32
如果图像的类型不是torch.float32的话,可以通过batch = batch.float()来将张量转化为torch.float32原创 2021-01-29 12:08:14 · 1218 阅读 · 0 评论