-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 load a pretrained model? #12
Comments
Hi, you should use |
Thanks~ |
@lijiaman your The you can find an example to load a list of numpy array into tensorlayer as follow: |
This is a good example provided by @wagamamaz
|
BiRNN refactored, tested and doc updated, other minor updates to rnn, fixed dropout bug, make format
I want to load the pretrained AlexNet model bvlc_alexnet.npy, and I know using np.load('bvlc_alexnet.npy') can get some numpy array of weights and bias. (Like net = np.load('bvlc_alexnet.npy'), net["conv1"][0] represent the weights of conv1) But there are some problems loading them into Conv2d layer.
Then while running, it gives error:
Variable cannot be callable.
Could someone give an example to load weights of pretrained model?By the way, I tried to install TensorLayer from git, while inputting command "pip install . -e", it said -e need an argument.. so how to install it properly if I want to modify some codes of it? Hope someone can help me. Thanks very much.
The text was updated successfully, but these errors were encountered: