一、 Faster-RCNN代码解释 先看看代码结构: Data: This directory holds (after you download them): Caffe models pre-trained on ImageNet Faster R-CNN models Symlinks to ...
分类:
编程语言 时间:
2018-10-26 22:07:21
阅读次数:
233
以前使用Caffe的时候没注意这个,现在使用预训练模型来动手做时遇到了。在slim中的自带模型中inception, resnet, mobilenet等都自带BN层,这个坑在《实战Google深度学习框架》第二版这本书P166里只是提了一句,没有做出解答。 书中说训练时和测试时使用的参数is_tr ...
分类:
其他好文 时间:
2018-10-24 12:10:08
阅读次数:
889
坑点: 1.pil在打开图片时,默认rgb,默认0-1范围。要搞成0-255的自己去乘 2.有个注意的点,pytorch在第一次con到全联接的时候,要做一个展开操作,直接h=h.view(h.size(0),-1)就可以和caffe的一一对应 3.rgb转bgr:im=im[[2,0,1],... ...
分类:
其他好文 时间:
2018-10-23 21:19:06
阅读次数:
235
from caffe.proto import caffe_pb2 s = caffe_pb2.SolverParameter() path='/home/xxx/data/' solver_file=path+'solver.prototxt' #solver文件保存位置 s.train_net ... ...
分类:
其他好文 时间:
2018-10-20 00:53:25
阅读次数:
200
import caffe solver_file = "solver.prototxt" solverstate = "xx.solverstate" caffe.set_device(0) caffe.set_mode_gpu() solver = caffe.get_solver(solver_... ...
分类:
其他好文 时间:
2018-10-20 00:14:24
阅读次数:
222
环境: ubuntu16.04 cuda8.0 cudnn5.0 已安装过caffe1.0 tensorflow1.2 教程 https://github.com/weiliu89/caffe/tree/ssd Installation git clone https://github.com/we ...
分类:
其他好文 时间:
2018-10-17 14:41:57
阅读次数:
594
解决办法:由于安装的cuda版本是7.5,当前下载的caffe版本比较新,需要修改里面的makefile文件,屏蔽下面的代码,cuda<8.0 In the Makefile.example, try commenting out the *_60 and *_61 lines (for compa ...
分类:
其他好文 时间:
2018-10-15 21:16:41
阅读次数:
206
Deep Learning of Binary Hash Codes for Fast Image Retrieval [Paper] [Code-Caffe] 1. 摘要 针对图像检索问题,提出简单有效的监督学习框架 CNN网络结构能同时学习图像特征表示以及 hash-like 编码函数集合 利用 ...
分类:
其他好文 时间:
2018-10-12 23:41:45
阅读次数:
222
import caffe 不成功, 报错“No module named google.protobuf.internal” 方法1:我之前经常会用, 但其实不好用。就是找一个protobuf的包, 然后手动装。 方法2:直接pip install protobuf或者conda install p ...
分类:
其他好文 时间:
2018-10-12 17:00:24
阅读次数:
197
一、下载 1. 修改 build_win.cmd (上面粉红色部分就是第三方库的文件位置,根据自己的位置改下,不加上这句的话默认在user/.caffe下) 2. 修改 download_prebuilt_dependencies.py 3. 修改 WindowsDownloadPrebuiltDe ...
分类:
编程语言 时间:
2018-10-12 01:19:54
阅读次数:
283