{"action":"opened","issue":{"url":"https://api.github.com/repos/vlfeat/matconvnet/issues/451","repository_url":"https://api.github.com/repos/vlfeat/matconvnet","labels_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/451/comments","events_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/451/events","html_url":"https://github.com/vlfeat/matconvnet/issues/451","id":138389389,"number":451,"title":"Error while fine tune the googlenet model","user":{"login":"noneface","id":9494903,"avatar_url":"https://avatars.githubusercontent.com/u/9494903?v=3","gravatar_id":"","url":"https://api.github.com/users/noneface","html_url":"https://github.com/noneface","followers_url":"https://api.github.com/users/noneface/followers","following_url":"https://api.github.com/users/noneface/following{/other_user}","gists_url":"https://api.github.com/users/noneface/gists{/gist_id}","starred_url":"https://api.github.com/users/noneface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noneface/subscriptions","organizations_url":"https://api.github.com/users/noneface/orgs","repos_url":"https://api.github.com/users/noneface/repos","events_url":"https://api.github.com/users/noneface/events{/privacy}","received_events_url":"https://api.github.com/users/noneface/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-04T06:18:13Z","updated_at":"2016-03-04T06:18:13Z","closed_at":null,"body":"Hi,\r\nI am trying to use my own dataset to fine tune the googlenet model.\r\ni run the cnn_train_dag.m function without changing the model's last two layers, however, it has some errors in cnn_train_dag.m as follows.\r\n\r\nerror  dagnn.DagNN/eval (line 80)\r\nNo variable of name 'input' could be found in the DAG.\r\n\r\nand then i read the eval.m ,it seems that something wrong about getVarIndex(inputs(1:2:end)) in line 77.\r\nAbout the inputs,it is:\r\n   im = imdb.images.data(:,:,:,batch) ;\r\n   labels = imdb.images.labels(1,batch) ;\r\n   inputs = {'input', im, 'label', labels} ;\r\nand in getVarIndex() function, it always return  NaN with my inputs.\r\nI've also tried to use the imdb.mat file in examples/mnist, it also meets the same error, so I think my imdb.mat file has no problem. \r\n\r\nSo, is there something wrong in getVarIndex() or missing some steps in my program?\r\nAnd, according to https://github.com/vlfeat/matconvnet/issues/218, it is said that we should change the last two layers before fine tuning,  then how to change the last two layers in googlenet model?"}}