-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
train with another dataset #14
Comments
To add a dataset properly, you will need to modify files under |
for semantic segmentation, classification number in the last layer is not the same mine, how to change it , can you tell me in detail? |
when I train with 8 classes, it reported" Cannot copy param 0 weights from layer 'conv7'; shape mismatch. Source param shape is 7 64 1 1 (448); target param shape is 8 64 1 1 (512). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer" what should I do? |
Since we trained the network with 7 classes, the weights for the last layer is of shape 7x64. Since you want to train for 8 classes, the required weights would be of shape 8x64 and so you can not use the pre-trained weights of this last layer. You need to re-learn this layer parameters from scratch. As mentioned in your message, an easy way to do this would be re-naming the last classification layer in the caffe model to something else. |
thanks a lot ! |
I‘m interested in your great work, and I want to train with another dataset with 12 classes, I am confused at what I should change about training with differentnumber except for classed number and cmap? Can you please help me ?? thanks very much, waiting for your reply
The text was updated successfully, but these errors were encountered: