-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
How to initialize a network using .caffemodel, .solverstate? Thank you. #5730
Comments
Hello @ayeshasGithub To resume from a snapshot : To use weights of a trained model caffe train -gpu all -solver my_model/solver.prototxt -weights my_model/bvlc_reference_caffenet.caffemodel 2>&1 | tee -a log/my_model.log Hope it helps |
Thanks so much amal, but I need those commands in python. Do you know how I can do it in python? |
In your train.py, you can use solver.net.copy_from(pretrained_model) to restore a trained model and solver.restore(previous_state) to restore previous solver state. You can find an example here : https://github.com/rbgirshick/py-faster-rcnn/blob/master/lib/fast_rcnn/train.py Hope it helps |
Nice of you amal, thank you so much, that definitely should help, thanks a lot |
Hello, Do I need to keep the same old learning rate in solver file while resuming the training via snapshot or I need to change the base_lr where it had left of? Cheers |
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help. Please read the guidelines for contributing before submitting this issue. |
Could any please show me how to initialize a deep network using .caffemodel or .solverstate?
Thanks
Ayesha
The text was updated successfully, but these errors were encountered: