{"action":"opened","issue":{"url":"https://api.github.com/repos/vlfeat/matconvnet-fcn/issues/38","repository_url":"https://api.github.com/repos/vlfeat/matconvnet-fcn","labels_url":"https://api.github.com/repos/vlfeat/matconvnet-fcn/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/vlfeat/matconvnet-fcn/issues/38/comments","events_url":"https://api.github.com/repos/vlfeat/matconvnet-fcn/issues/38/events","html_url":"https://github.com/vlfeat/matconvnet-fcn/issues/38","id":175935861,"number":38,"title":"Error while using ResNet","user":{"login":"chinnurocks","id":22092382,"avatar_url":"https://avatars.githubusercontent.com/u/22092382?v=3","gravatar_id":"","url":"https://api.github.com/users/chinnurocks","html_url":"https://github.com/chinnurocks","followers_url":"https://api.github.com/users/chinnurocks/followers","following_url":"https://api.github.com/users/chinnurocks/following{/other_user}","gists_url":"https://api.github.com/users/chinnurocks/gists{/gist_id}","starred_url":"https://api.github.com/users/chinnurocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinnurocks/subscriptions","organizations_url":"https://api.github.com/users/chinnurocks/orgs","repos_url":"https://api.github.com/users/chinnurocks/repos","events_url":"https://api.github.com/users/chinnurocks/events{/privacy}","received_events_url":"https://api.github.com/users/chinnurocks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T06:15:09Z","updated_at":"2016-09-09T06:15:09Z","closed_at":null,"body":"Hey, \r\n\r\nI would like to implement Resnet-50 pretrained model. I just downloaded it, and it works fine. But when I just want to remove layers from the network. There is a inbuilt function net.removeLayer('LayerName'). This works for removing layer. But in my case, I would like to remove some 50 layers. So I tried to use for loop. \r\n\r\n for hj=1:173\r\nnet7.layers(hj)=net.layers(hj);\r\nend\r\nfor hj=1:174\r\nnet7.vars(hj)=net.vars(hj);\r\nend\r\nnet7.params=net.params;\r\nnet7.meta=net.meta;\r\n>> net7 = dagnn.DagNN.loadobj(net7) ;\r\n\r\nit worked for 1:174 layers. But when I just want to remove other layers using this technique. It's showing an error in converting the struct to DAG obj as \r\nSubscript indices must either be real positive integers or logicals.\r\n\r\nError in dagnn.DagNN.loadobj (line 47)\r\n        obj.params(p).(f) = s.params(i).(f) ;\r\n\r\nNeed your help. \r\nThank YOu,\r\n"}}
{"actor":{"display_login":"chinnurocks"}}