Closed Bardo91 closed 6 years ago
For my case, I have printed out the blob_shape and find that the shape of the last layer is empty. Therefore its length is zero, which leads to this error. I have simply deleted the last loss layer and everything works well :)
I am trying to visualize a model trained from SSD too, I meet this mistake:
Cannot copy param 0 weights from layer 'conv4_3_norm_mbox_conf'; shape mismatch. Source param shape is 8 512 3 3 (36864);target param shape is 12 512 3 3 (55296). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.
Now, I solved it, because the deploy.prototxt I used is not the prototxt I trained before, I change the prototxt and the mistake is solved.
@shonehang For the SSD case, would you mind to tell which files are those that you modified? Thank you very much!
go into the your caffe-ssd install path , use ./python/draw_net.py /path/to/your/prototxt_file/train.prototxt network.jpg
I am trying to visualize a model trained from https://github.com/weiliu89/caffe/tree/ssd. But I am getting the following error while running the tool:
Is it some incompatibility of the tool with the network?
These are the settings and the proto model (I added .txt at the end to be able to upload them) settings_local.py.txt deploy.prototxt.txt