Caffe
文章平均质量分 68
Caffe框架
wait a minutes
创作不易,可以订阅博主哦。
展开
-
【caffe】关于gempool层
gempoolP torch转caffe原创 2021-10-24 09:00:00 · 1264 阅读 · 0 评论 -
(caffe)python 3.6编译libboost_python3.so并编译cpu-caffe
写这篇主要是使用fast-reid中torch转caffe模型,通过run_inference.sh调用caffe python3.6接口失败,花了太多时间,所以记录以下。这里感谢Hwijune。1.下载boostboost_1_68_0.tar.gz2.解压文件tar xzvf boost_1_68_0.tar.gz cd boost_1_68_0/ 3.安装附加依赖库apt-get update apt-get install build-essenti原创 2020-07-22 16:19:00 · 3411 阅读 · 7 评论 -
pytorch转caffe中maxpool一定要注意
pytorch转caffe中maxpool一定要注意,不然成功转换了还是会出错.下面给出了pytorch与caffe中maxpool层的转换的对应关系.为了自己以后不要再被这个问题坑吧.fast-reid中怎么转caffe成功且正确.pytorch layerself.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, ceil_mode=True)caffe layer:layer { name: "max_pool1" type:原创 2020-08-05 10:57:54 · 1149 阅读 · 5 评论 -
pytorch转caffe的结果不一样时经验总结
最近跟转模型结果不一样斗争了很久很久.争对尝试,总结几个我们可以去查问题的方向吧.1.模型是否正确转后的模型每一层网络结构是否一样,输入与输出的特征图维度是不是一样.2.同样的输入,预处理与后处理相同,不同模型(pytorch,caffe)验证结果(1)这种情况下我们保证所有的输入/预处理/后处理一致,确定是不是模型转换中出现的问题.(2)怎么验证:每一种处理直到输入到模型,都做可视化输出,一一核对输出是否一致,不一致就改一致.3.查pytorch转caffe的一些坑,找思路(1原创 2020-08-05 11:46:03 · 3149 阅读 · 7 评论 -
caffe编译错误可能原因分析----fatal error: numpy/arrayobject.h: No such file or directory
编译caffe时如果出现这种情况的可能性.1.python路径不对修改Makefile.config文件中对应的路径2.numpy版本不对可以使用如下命令升级numpy:python2python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pippython -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upg原创 2020-08-12 18:38:26 · 1594 阅读 · 0 评论 -
caffe导出可视化中间层特征
0.环境ubuntu16.04caffe1.代码# cpu caffecaffe_root = '/caffe/'sys.path.insert(0, caffe_root + 'python') import caffe# gpu caffecaffe_root = '/caffe_gpu/'sys.path.insert(0, caffe_root + 'python') import caffecaffe.set_device(0)# initnet =.原创 2020-09-21 12:45:40 · 276 阅读 · 0 评论