{"action":"created","issue":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/178","repository_url":"https://api.github.com/repos/beniz/deepdetect","labels_url":"https://api.github.com/repos/beniz/deepdetect/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/beniz/deepdetect/issues/178/comments","events_url":"https://api.github.com/repos/beniz/deepdetect/issues/178/events","html_url":"https://github.com/beniz/deepdetect/issues/178","id":176770930,"number":178,"title":"Prediction fails for ResNet-50 - outputs the default class","user":{"login":"alkamid","id":703479,"avatar_url":"https://avatars.githubusercontent.com/u/703479?v=3","gravatar_id":"","url":"https://api.github.com/users/alkamid","html_url":"https://github.com/alkamid","followers_url":"https://api.github.com/users/alkamid/followers","following_url":"https://api.github.com/users/alkamid/following{/other_user}","gists_url":"https://api.github.com/users/alkamid/gists{/gist_id}","starred_url":"https://api.github.com/users/alkamid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkamid/subscriptions","organizations_url":"https://api.github.com/users/alkamid/orgs","repos_url":"https://api.github.com/users/alkamid/repos","events_url":"https://api.github.com/users/alkamid/events{/privacy}","received_events_url":"https://api.github.com/users/alkamid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-13T22:51:29Z","updated_at":"2016-09-14T07:43:13Z","closed_at":null,"body":"I'm running deepdetect on an AWS AMI shared by revikoleb, with source files updated to the current version (`git pull`) and rebuilt. Following the tutorial for setting up an image classifier, I'm starting dede and using the following Python script:\r\n\r\n```\r\nfrom dd_client import DD\r\ndd = DD('localhost')\r\ndd.set_return_format(dd.RETURN_PYTHON)\r\ndescription = 'image classification service'\r\nmllib = 'caffe'\r\nmodel = {'templates':'../templates/caffe/','repository':'../../models/imgnet'}\r\nparameters_input = {'connector':'image'}\r\nparameters_mllib = {'weights':'resnet_50','nclasses':1000}\r\nparameters_output = {}\r\ndd.put_service('imageserv',model,description,mllib,\r\n               parameters_input,parameters_mllib,parameters_output)\r\n```\r\n(I changed `template` to `weights` in `parameters_mllib` after reading #116)\r\nOutput:\r\n```\r\n{u'status': {u'code': 201, u'msg': u'Created'}}\r\n```\r\n\r\n```\r\n#prediction:\r\n\r\ndata = ['http://i.ytimg.com/vi/0vxOhd4qlnA/maxresdefault.jpg']\r\nparameters_input = {'width':224,'height':224}\r\nparameters_mllib = {'gpu':True}\r\nparameters_output = {'best':3}\r\ndd.post_predict('imageserv',data,parameters_input,parameters_mllib,parameters_output)\r\n```\r\n\r\nThis is the output:\r\n```\r\n{u'body': {u'predictions': {u'classes': {u'cat': u'n01440764 tench, Tinca tinca',\r\n    u'last': True,\r\n    u'prob': 0.0010000000474974513},\r\n   u'uri': u'http://i.ytimg.com/vi/0vxOhd4qlnA/maxresdefault.jpg'}},\r\n u'head': {u'method': u'/predict', u'service': u'imageserv', u'time': 575.0},\r\n u'status': {u'code': 200, u'msg': u'OK'}}\r\n```\r\n\r\nIt seems to be the same error as in #58 but @beniz said in #84:\r\n\r\n> At the moment, doing a quick image classification test on a single image prediction task, the resnet_50 takes 302MB out of 12GB on a K40, as reported by `nvidia-smi`.\r\n\r\nAnd since I'm running on the 4GB AWS GPUs (g2.8xlarge instance), memory shouldn't be a problem here."},"comment":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/comments/246932099","html_url":"https://github.com/beniz/deepdetect/issues/178#issuecomment-246932099","issue_url":"https://api.github.com/repos/beniz/deepdetect/issues/178","id":246932099,"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":"2016-09-14T07:43:13Z","updated_at":"2016-09-14T07:43:13Z","body":"sure we do. we have on git but haven't got it public yet. So as for now if you can list modifications, we'll make the update. Thanks."}}
{"actor":{"display_login":"beniz"}}