{"action":"opened","issue":{"url":"https://api.github.com/repos/zsdonghao/tensorlayer/issues/12","repository_url":"https://api.github.com/repos/zsdonghao/tensorlayer","labels_url":"https://api.github.com/repos/zsdonghao/tensorlayer/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/zsdonghao/tensorlayer/issues/12/comments","events_url":"https://api.github.com/repos/zsdonghao/tensorlayer/issues/12/events","html_url":"https://github.com/zsdonghao/tensorlayer/issues/12","id":185694401,"number":12,"title":"how to load a pretrained model?","user":{"login":"lijiaman","id":12640532,"avatar_url":"https://avatars.githubusercontent.com/u/12640532?v=3","gravatar_id":"","url":"https://api.github.com/users/lijiaman","html_url":"https://github.com/lijiaman","followers_url":"https://api.github.com/users/lijiaman/followers","following_url":"https://api.github.com/users/lijiaman/following{/other_user}","gists_url":"https://api.github.com/users/lijiaman/gists{/gist_id}","starred_url":"https://api.github.com/users/lijiaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijiaman/subscriptions","organizations_url":"https://api.github.com/users/lijiaman/orgs","repos_url":"https://api.github.com/users/lijiaman/repos","events_url":"https://api.github.com/users/lijiaman/events{/privacy}","received_events_url":"https://api.github.com/users/lijiaman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T15:02:22Z","updated_at":"2016-10-27T15:02:22Z","closed_at":null,"body":"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.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12640532/19772392/1331f92c-9c34-11e6-826d-10758df5fad5.png)\r\n![image](https://cloud.githubusercontent.com/assets/12640532/19772404/1f0b03b0-9c34-11e6-8fed-babe077629be.png)\r\n\r\nThen while running, it gives error:\r\nVariable cannot be callable.\r\n\r\nCould 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. \r\n\r\n"}}
{"actor":{"display_login":"lijiaman"}}