今天在使用别人的模型训练自己的数据时候,遇到了如下错误:
Cannot copy param 0 weights from layer 'conv6'; shape mismatch. Source param shape is 21 512 1 1 (10752); target param shape is 5 512 1 1 (2560). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.
*** Check failure stack trace: ***
@ 0x7fd7a4235dbd google::LogMessage::Fail()
@ 0x7fd7a4237c5d google::LogMessage::SendToLog()
@ 0x7fd7a42359ac google::LogMessage::Flush()
@ 0x7fd7a423857e google::LogMessageFatal::~LogMessageFatal()
@ 0x7fd7a48db897 caffe::Net<>::CopyTrainedLayersFrom()
@ 0x7fd7a48e3c62 caffe::Net<>::CopyTrainedLayersFromBinaryProto()
@ 0x7fd7a48e3cc6 caffe::Net<>::CopyTrainedLayersFrom()
@ 0x406764 CopyLayers()
@ 0x408315 train()
@