Skip to content
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

Finetuning: how to adapt/retrain a model to new categories? #358

Closed
roshansingh opened this issue Apr 24, 2014 · 1 comment
Closed

Finetuning: how to adapt/retrain a model to new categories? #358

roshansingh opened this issue Apr 24, 2014 · 1 comment
Labels

Comments

@roshansingh
Copy link

I want to retrain imagenet with newly defined categories (lets say around 50). How can I edit the various prototxt files to achieve this? Also can I refer any doc to understand all the parameters used in training prototxt file.

@shelhamer
Copy link
Member

See the Caffe presentation (slide 15) linked from the README for how to finetune the model to a new set of classes. "Finetuning" is the method of taking a pretrained network, replacinga part, and then continuing the training on new data.

You only need to edit the last classifier layer to finetune.

Also can I refer any doc to understand all the parameters used in training prototxt file.

The parameters are mostly derived from the Krizhevsky model [1]. For a description of Caffe model parameters, read the comments in caffe.proto or the (better documented) dev caffe.proto.

[1] A. Krizhevsky, I. Sutskever, and G. Hinton. Imagenet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25, 2012.

@shelhamer shelhamer changed the title How to retrain imagenet with new categories? Finetuning: how to adapt/retrai a model to new categories? May 2, 2014
@shelhamer shelhamer changed the title Finetuning: how to adapt/retrai a model to new categories? Finetuning: how to adapt/retrain a model to new categories? May 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants