splatnet icon indicating copy to clipboard operation
splatnet copied to clipboard

train with another dataset

Open lapetite123 opened this issue 6 years ago • 5 comments

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

lapetite123 avatar Jan 22 '19 14:01 lapetite123

To add a dataset properly, you will need to modify files under splatnet/semseg3d/ (or splatnet/partseg3d/ for part segmentation) accordingly. A quicker solution is to keep the original code but instead structure your data folder and files the same way as the supported datasets. Like discussed in #12 , you may still need to make some modifications to support a different set of data attribute fields.

suhangpro avatar Jan 23 '19 00:01 suhangpro

for semantic segmentation, classification number in the last layer is not the same mine, how to change it , can you tell me in detail?

lapetite123 avatar Jan 28 '19 07:01 lapetite123

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?

lapetite123 avatar Feb 01 '19 13:02 lapetite123

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.

varunjampani avatar Feb 01 '19 17:02 varunjampani

thanks a lot !

lapetite123 avatar Feb 02 '19 07:02 lapetite123