{"action":"created","issue":{"url":"https://api.github.com/repos/onnx/tutorials/issues/51","repository_url":"https://api.github.com/repos/onnx/tutorials","labels_url":"https://api.github.com/repos/onnx/tutorials/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/onnx/tutorials/issues/51/comments","events_url":"https://api.github.com/repos/onnx/tutorials/issues/51/events","html_url":"https://github.com/onnx/tutorials/issues/51","id":344155947,"node_id":"MDU6SXNzdWUzNDQxNTU5NDc=","number":51,"title":"Error loading the caffe2 model into onnx.","user":{"login":"ayush1999","id":24913958,"node_id":"MDQ6VXNlcjI0OTEzOTU4","avatar_url":"https://avatars2.githubusercontent.com/u/24913958?v=4","gravatar_id":"","url":"https://api.github.com/users/ayush1999","html_url":"https://github.com/ayush1999","followers_url":"https://api.github.com/users/ayush1999/followers","following_url":"https://api.github.com/users/ayush1999/following{/other_user}","gists_url":"https://api.github.com/users/ayush1999/gists{/gist_id}","starred_url":"https://api.github.com/users/ayush1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayush1999/subscriptions","organizations_url":"https://api.github.com/users/ayush1999/orgs","repos_url":"https://api.github.com/users/ayush1999/repos","events_url":"https://api.github.com/users/ayush1999/events{/privacy}","received_events_url":"https://api.github.com/users/ayush1999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-24T18:38:23Z","updated_at":"2018-08-28T00:34:47Z","closed_at":null,"author_association":"NONE","body":"I followed the steps mentioned in the tutorial to convert the a detectron pretrained caffe2 model into ONNX model. Here's the stacktrace of my error:\r\n```\r\nWARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.\r\nWARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'\r\nWARNING:caffe2.python.workspace:Original python traceback for operator `102` in network `detectron_e2e_faster_rcnn_R-50-C4_1x_35857197` in exception above (most recent call last):\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 24, in <module>\r\n    value_info,\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/onnx/frontend.py\", line 332, in caffe2_net_to_onnx_model\r\n    model = make_model(cls.caffe2_net_to_onnx_graph(*args, **kwargs),\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/onnx/frontend.py\", line 221, in caffe2_net_to_onnx_graph\r\n    inputs)\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/onnx/helper.py\", line 62, in c2_native_run_net\r\n    ws.RunNetOnce(predict_net)\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/onnx/workspace.py\", line 63, in f\r\n    return getattr(workspace, attr)(*args, **kwargs)\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/workspace.py\", line 199, in RunNetOnce\r\n    StringifyProto(net),\r\n  File \"/home/ayush99/anaconda3/lib/python3.6/site-packages/caffe2/python/workspace.py\", line 178, in CallWithExceptionIntercept\r\n    return func(*args, **kwargs)\r\nRuntimeError: [enforce fail at generate_proposals_op.cc:205] im_info_tensor.dims() == (vector<TIndex>{num_images, 3}). 0 vs 1 3 Error from operator: \r\ninput: \"rpn_cls_probs_1\" input: \"rpn_bbox_pred_1\" input: \"im_info_0\" input: \"anchor_0\" output: \"rpn_rois_1\" output: \"rpn_roi_probs_1\" name: \"\" type: \"GenerateProposals\" arg { name: \"nms_thres\" f: 0.7 } arg { name: \"min_size\" f: 0 } arg { name: \"spatial_scale\" f: 0.0625 } arg { name: \"correct_transform_coords\" i: 1 } arg { name: \"post_nms_topN\" i: 1000 } arg { name: \"pre_nms_topN\" i: 6000 }\r\n```\r\n\r\nAny idea what  could be going wrong here?"},"comment":{"url":"https://api.github.com/repos/onnx/tutorials/issues/comments/416412252","html_url":"https://github.com/onnx/tutorials/issues/51#issuecomment-416412252","issue_url":"https://api.github.com/repos/onnx/tutorials/issues/51","id":416412252,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjQxMjI1Mg==","user":{"login":"houseroad","id":30275821,"node_id":"MDQ6VXNlcjMwMjc1ODIx","avatar_url":"https://avatars0.githubusercontent.com/u/30275821?v=4","gravatar_id":"","url":"https://api.github.com/users/houseroad","html_url":"https://github.com/houseroad","followers_url":"https://api.github.com/users/houseroad/followers","following_url":"https://api.github.com/users/houseroad/following{/other_user}","gists_url":"https://api.github.com/users/houseroad/gists{/gist_id}","starred_url":"https://api.github.com/users/houseroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houseroad/subscriptions","organizations_url":"https://api.github.com/users/houseroad/orgs","repos_url":"https://api.github.com/users/houseroad/repos","events_url":"https://api.github.com/users/houseroad/events{/privacy}","received_events_url":"https://api.github.com/users/houseroad/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T00:34:47Z","updated_at":"2018-08-28T00:34:47Z","author_association":"MEMBER","body":"ONNX does not have the corresponding ops yet. https://github.com/onnx/onnx/pull/1010"}}
{"actor":{"display_login":"houseroad"}}