1.文字描述:
Cannot copy param 0 weights from layer 'fc6'; shape mismatch. Source param shape is 4096 256 6 6 (37748736); target param shape is 4096 9216 (37748736). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.
2.图片描述
3.问题解释
参数数目不匹配,建议重命名?
4.解决办法
因为在这个finetune中,我是用的网上下载的caffemodel,出现这个错误后我打算使用之前自己生成的准确率69%的caffemodel试一下,看看会不会有这个错误。
5.改后结果
在训练的一开始,accuracy=0.69和生成这个caffemodel的稳定时候的accuracy一样,所以finetune成功,所以在此写下finetune的bat脚本格式。
GLOG_logtostderr=0
D:\caffe-master\Build\x64\debug\caffe.exe train --solver=D:\数据集\实验\finetune1\train_test\solver.prototxt --weights=D:\数据集\实验\finetune1\数据集_iter_1000.caffemodel
pause
保证windows下可以使用。
至于上面出现的问题后续如果修改成功我会更新上来,从目前来看应该是从网上下载的这个caffemodel训练的时候和我的input格式大小不同,我是全部resize成256*256的。