mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Fix conv layers and train only FC layers

Open No41Name opened this issue 9 years ago • 3 comments

What I would to do is loading a pre-trained model (on imagenet) and train only its last fully connected layers on a new dataset, maintaining fixed all the weights of the convolutional layers (in order to use the first part of the network as a feature extractor). Can someone explain me how can I do this, in particular fix the conv layers? Thanks!

No41Name avatar Jan 09 '17 22:01 No41Name

Check fine-tune.py under example/image-classification

howard0su avatar Jan 09 '17 23:01 howard0su

Thanks!

No41Name avatar Jan 10 '17 15:01 No41Name

@howard0su @No41Name I took a look at the fine-tune.py example and got it working for my own dataset. However it wasn't clear how to freeze/unfreeze particular layers. Perhaps I missed something?

jrosebr1 avatar Jan 24 '17 21:01 jrosebr1