{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7162","repository_url":"https://api.github.com/repos/apache/incubator-mxnet","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7162/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7162/comments","events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7162/events","html_url":"https://github.com/apache/incubator-mxnet/issues/7162","id":244855271,"number":7162,"title":"Cant convert caffe model to mxnet","user":{"login":"divamgupta","id":1890549,"avatar_url":"https://avatars0.githubusercontent.com/u/1890549?v=4","gravatar_id":"","url":"https://api.github.com/users/divamgupta","html_url":"https://github.com/divamgupta","followers_url":"https://api.github.com/users/divamgupta/followers","following_url":"https://api.github.com/users/divamgupta/following{/other_user}","gists_url":"https://api.github.com/users/divamgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/divamgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divamgupta/subscriptions","organizations_url":"https://api.github.com/users/divamgupta/orgs","repos_url":"https://api.github.com/users/divamgupta/repos","events_url":"https://api.github.com/users/divamgupta/events{/privacy}","received_events_url":"https://api.github.com/users/divamgupta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-22T15:56:42Z","updated_at":"2018-02-23T03:34:59Z","closed_at":"2017-07-24T17:19:17Z","author_association":"NONE","body":"Cant convert caffe model. \r\n\r\nI treid `python convert_caffe_modelzoo.py resnet-50`\r\n\r\n\r\n## Error Message:\r\n\r\n```\r\nlibdc1394 error: Failed to initialize libdc1394\r\nlibdc1394 error: Failed to initialize libdc1394\r\nTraceback (most recent call last):\r\n  File \"convert_caffe_modelzoo.py\", line 115, in <module>\r\n    fname, _ = convert_caffe_model(args.model_name, model_meta_info[args.model_name])\r\n  File \"convert_caffe_modelzoo.py\", line 101, in convert_caffe_model\r\n    (prototxt, caffemodel, mean) = download_caffe_model(model_name, meta_info, dst_dir)\r\n  File \"convert_caffe_modelzoo.py\", line 89, in download_caffe_model\r\n    prototxt = mx.test_utils.download(meta_info['prototxt'], model_name+'_deploy.prototxt')\r\nAttributeError: 'module' object has no attribute 'download'\r\n```\r\n\r\n\r\n## Minimum reproducible example\r\n\r\n`python convert_caffe_modelzoo.py resnet-50`\r\n\r\n\r\n## Environment info\r\nOperating System: Ubuntu 14.04\r\n\r\nCompiler: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)\r\nInstalled from source:\r\nMXNet commit hash: a242e9f4b77bf705ae679de05642fbe88f870a9f\r\nCaffe commit hash: 4efdf7ee49cffefdd7ea099c00dc5ea327640f04\r\nPython version and distribution: Python 2.7.6\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/comments/367900241","html_url":"https://github.com/apache/incubator-mxnet/issues/7162#issuecomment-367900241","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7162","id":367900241,"user":{"login":"xiaoheizi123","id":25768851,"avatar_url":"https://avatars3.githubusercontent.com/u/25768851?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoheizi123","html_url":"https://github.com/xiaoheizi123","followers_url":"https://api.github.com/users/xiaoheizi123/followers","following_url":"https://api.github.com/users/xiaoheizi123/following{/other_user}","gists_url":"https://api.github.com/users/xiaoheizi123/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoheizi123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoheizi123/subscriptions","organizations_url":"https://api.github.com/users/xiaoheizi123/orgs","repos_url":"https://api.github.com/users/xiaoheizi123/repos","events_url":"https://api.github.com/users/xiaoheizi123/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoheizi123/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T03:34:59Z","updated_at":"2018-02-23T03:34:59Z","author_association":"NONE","body":"I also cannot convert resnet-50 using **python convert_caffe_modelzoo.py resnet-50**\r\n\r\n`converting scale layer, beta shape = (2048,), gamma shape = (2048,)\r\n        skipping layer res5c of type Eltwise\r\n        skipping layer res5c_relu of type ReLU\r\n        skipping layer pool5 of type Pooling\r\nconverting layer fc1000, wmat shape = (1000, 2048), bias shape = (1000,)\r\n        skipping layer prob of type Softmax\r\n/home/users/rui.zheng/anaconda2/lib/python2.7/site-packages/mxnet/module/base_module.py:65: UserWarning: Data provided by label_shapes don't match names specified by label_names ([] vs. ['prob_label'])\r\n  warnings.warn(msg)\r\nTraceback (most recent call last):\r\n  File \"convert_caffe_modelzoo.py\", line 144, in <module>\r\n    fname, _ = convert_caffe_model(args.model_name, model_meta_info[args.model_name])\r\n  File \"convert_caffe_modelzoo.py\", line 133, in convert_caffe_model\r\n    convert_mean(mean, [mx_mean])\r\n  File \"/home/users/rui.zheng/works/incubator-mxnet/tools/caffe_converter/convert_mean.py\", line 44, in convert_mean\r\n    mean_blob.ParseFromString(f.read())\r\ngoogle.protobuf.message.DecodeError: Error parsing message\r\n`\r\nf.read() is ok, but mean_blob is None when print it，\r\nI also read [https://github.com/apache/incubator-mxnet/blob/430ea7bfbbda67d993996d81c7fd44d3a20ef846/docs/how_to/caffe.md](url), and do what **Converting Caffe trained models to MXNet**  part shows, but it is still wrong, what should I do? "}}
{"actor":{"display_login":"xiaoheizi123"}}