{"action":"created","issue":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/35","labels_url":"https://api.github.com/repos/beniz/deepdetect/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/beniz/deepdetect/issues/35/comments","events_url":"https://api.github.com/repos/beniz/deepdetect/issues/35/events","html_url":"https://github.com/beniz/deepdetect/issues/35","id":119500235,"number":35,"title":"problem using the pretrained model ","user":{"login":"Vgandhi9","id":5131088,"avatar_url":"https://avatars.githubusercontent.com/u/5131088?v=3","gravatar_id":"","url":"https://api.github.com/users/Vgandhi9","html_url":"https://github.com/Vgandhi9","followers_url":"https://api.github.com/users/Vgandhi9/followers","following_url":"https://api.github.com/users/Vgandhi9/following{/other_user}","gists_url":"https://api.github.com/users/Vgandhi9/gists{/gist_id}","starred_url":"https://api.github.com/users/Vgandhi9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vgandhi9/subscriptions","organizations_url":"https://api.github.com/users/Vgandhi9/orgs","repos_url":"https://api.github.com/users/Vgandhi9/repos","events_url":"https://api.github.com/users/Vgandhi9/events{/privacy}","received_events_url":"https://api.github.com/users/Vgandhi9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beniz/deepdetect/labels/Caffe","name":"Caffe","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"beniz","id":3530657,"avatar_url":"https://avatars.githubusercontent.com/u/3530657?v=3","gravatar_id":"","url":"https://api.github.com/users/beniz","html_url":"https://github.com/beniz","followers_url":"https://api.github.com/users/beniz/followers","following_url":"https://api.github.com/users/beniz/following{/other_user}","gists_url":"https://api.github.com/users/beniz/gists{/gist_id}","starred_url":"https://api.github.com/users/beniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beniz/subscriptions","organizations_url":"https://api.github.com/users/beniz/orgs","repos_url":"https://api.github.com/users/beniz/repos","events_url":"https://api.github.com/users/beniz/events{/privacy}","received_events_url":"https://api.github.com/users/beniz/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-11-30T14:13:40Z","updated_at":"2015-12-01T08:03:56Z","closed_at":"2015-11-30T16:10:52Z","body":"I was trying to build a system using the pretrained model available here: http://www.deepdetect.com/applications/model/\r\n\r\nI downloaded the .tar.gz2 files for the clothing class. I then tried to build a simple python script using caffe to use the files provided with the pretrained model. But when I was creating the caffe Classifier class I faced a very strange error.\r\n\r\nThis is how I created the classifier class in caffe using Python, \r\n<code>\r\nnetwork_model = \"./deploy.prototxt\"\r\npretrained_network = \"./model_iter_300000.caffemodel\"\r\nnet = caffe.Classifier(network_model,pretrained_network,mean=np.load(\"mean.npy\"), raw_scale=255, channel_swap=(2, 1, 0), image_dims=(256,256))</code>\r\n\r\nThe deploy.prototxt and the model_iter_300000.caffemodel are the files which are present inside the .tar.gz2 file\r\nThe mean.npy file is created using the mean.binaryproto file present inside the .tar.gz2 file.\r\n\r\nand the error that I was getting was\r\n\r\n<code>\r\nI1130 08:07:26.102867  4413 net.cpp:248] Memory required for data: 1764597888\r\nTraceback (most recent call last):\r\n  File \"predict.py\", line 32, in <module>\r\n    mean=np.load(\"mean.npy\"), raw_scale=256, channel_swap=(2, 1, 0), image_dims=(256,256))\r\n  File \"/home/caffe/python/caffe/classifier.py\", line 29, in __init__\r\n    in_ = self.inputs[0]\r\nIndexError: list index out of range\r\n</code>\r\n\r\nCan any one help me with this strange error?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/comments/160888793","html_url":"https://github.com/beniz/deepdetect/issues/35#issuecomment-160888793","issue_url":"https://api.github.com/repos/beniz/deepdetect/issues/35","id":160888793,"user":{"login":"beniz","id":3530657,"avatar_url":"https://avatars.githubusercontent.com/u/3530657?v=3","gravatar_id":"","url":"https://api.github.com/users/beniz","html_url":"https://github.com/beniz","followers_url":"https://api.github.com/users/beniz/followers","following_url":"https://api.github.com/users/beniz/following{/other_user}","gists_url":"https://api.github.com/users/beniz/gists{/gist_id}","starred_url":"https://api.github.com/users/beniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beniz/subscriptions","organizations_url":"https://api.github.com/users/beniz/orgs","repos_url":"https://api.github.com/users/beniz/repos","events_url":"https://api.github.com/users/beniz/events{/privacy}","received_events_url":"https://api.github.com/users/beniz/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T08:03:56Z","updated_at":"2015-12-01T08:03:56Z","body":"@Vgandhi9 I guess you mean working with straight Caffe, right ? This might be useful to others."}}