-
Notifications
You must be signed in to change notification settings - Fork 260
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
Example of Loading Pretrained Model #163
Comments
Here's an example of loading params for a VGG16 net.
from lasagne.layers import set_all_param_values
with open('vgg16.pkl', 'rb') as f:
params = pickle.load(f)
net.initialize_layers()
set_all_param_values(net.layers_.values(), params['param values']) I'll try and remember to move this into the documentation at some point. |
6 tasks
Hi all, i meet the following error, how to solve? Thanks a lot. AttributeError: 'dict' object has no attribute 'initialize_layers' |
You can do the following (example with VGG_s model):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Lasagne/Recipes (see
modelzoo
) offers a number of pre-trained models. I suggest providing an example of loading weights for one of the pre-trained model.See also: Lasagne/Recipes#20
The text was updated successfully, but these errors were encountered: