Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MXNet SSD model support] Problem in converting ssd inception model from mxnet to IR. #62

Open
pokerface1o1 opened this issue Jan 29, 2018 · 7 comments

Comments

@pokerface1o1
Copy link

Platform (like ubuntu 16.04):

Python version: 2.7.12

Source framework with version: MXNET 1.0.0 with GPU

Destination framework with version: Tensorflow 1.4.1 with GPU

I was able to convert InceptionV3 (mxnet) to IR but I encounter a problem when I try to convert ssd InceptionV3 model(mxnet).

Running scripts:
root@2f2520263ec5:/home/bomo/Desktop# python -m mmdnn.conversion._script.convertToIR -f mxnet -n ssd_inceptionv3_512-symbol.json -d ssd_inceptionv3_512 --inputShape 3 512 512

error:
[14:37:20] src/nnvm/legacy_json_util.cc:209: Loading symbol saved by previous version v0.12.0. Attempting to upgrade... [14:37:20] src/nnvm/legacy_json_util.cc:217: Symbol successfully upgraded! /mxnet/python/mxnet/module/base_module.py:53: UserWarning: You created Module with Module(..., label_names=['softmax_label']) but input with name 'softmax_label' is not found in symbol.list_arguments(). Did you mean one of: data label warnings.warn(msg) Warning: MXNet Parser has not supported operator null with name data. Warning: convert the null operator with name [data] into input layer. Warning: MXNet Parser has not supported operator null with name label. Warning: convert the null operator with name [label] into input layer. [14:37:20] /mxnet/dmlc-core/include/dmlc/./logging.h:308: **[14:37:20] src/c_api/c_api_symbolic.cc:417: InferShapeKeyword argument name data not found. Candidate arguments: [0]label**
infer_shape error. Arguments: data: (1, 3, 512, 512) Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 159, in <module> _main() File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 154, in _main ret = _convert(args) File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 95, in _convert parser.gen_IR() File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/mxnet/mxnet_parser.py", line 269, in gen_IR self.rename_UNKNOWN(current_node) File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/mxnet/mxnet_parser.py", line 388, in rename_UNKNOWN self.set_output_shape(source_node, IR_node) File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/mxnet/mxnet_parser.py", line 285, in set_output_shape arg_shape, output_shape, aux_shape = sym.infer_shape(data = self.data_shape) File "/mxnet/python/mxnet/symbol/symbol.py", line 965, in infer_shape res = self._infer_shape_impl(False, *args, **kwargs) File "/mxnet/python/mxnet/symbol/symbol.py", line 1095, in _infer_shape_impl ctypes.byref(complete))) File "/mxnet/python/mxnet/base.py", line 146, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) **mxnet.base.MXNetError: [14:37:20] src/c_api/c_api_symbolic.cc:417: InferShapeKeyword argument name data not found. Candidate arguments: [0]label**

@kitstar
Copy link
Contributor

kitstar commented Jan 30, 2018

Hi @pokerface1o1 , could you provide the model path?

@pokerface1o1
Copy link
Author

I get the same error when I try with both network and weights. Both the file are in the same directory from which I run the code.

@kitstar
Copy link
Contributor

kitstar commented Jan 30, 2018

er... I mean, could you share your model for us to testing?

@pokerface1o1
Copy link
Author

It contains both the symbol and weights file: ssd_inception_512

@kitstar
Copy link
Contributor

kitstar commented Jan 30, 2018

I will try it and ping you if there is any progress. Thanks.

@kitstar kitstar changed the title Problem in converting ssd inception model from mxnet to IR. [MXNet SSD model support] Problem in converting ssd inception model from mxnet to IR. Jan 31, 2018
@Ztrimus
Copy link

Ztrimus commented Nov 21, 2019

@pokerface1o1 Were you able to resolve your issue? I am facing same problem.
@kitstar Is there any modifications related to object detection model support?

Thanks in advance.

@rohit167
Copy link

rohit167 commented May 6, 2020

@pokerface1o1 @sbzed @kitstar
Hello, were you able to solve this issue?

I have trained a custom yolo3 darknet-53 (using gluon-cv mxnet)
I need to convert the model to tensorflow for final inference.

I am facing the same issue while converting yolo3_darknet-53 mxnet model to IR.

ai-mxnet/lib/python3.6/site-packages/mxnet/module/base_module.py:55: UserWarning: You created Module with Module(..., label_names=['softmax_label']) but input with name 'softmax_label' is not found in symbol.list_arguments(). Did you mean one of: data _defaultpreprocess0_init_mean _defaultpreprocess0_init_scale yolov30_yolooutputv30_offset_0 yolov30_yolooutputv30_anchor_0 yolov30_yolooutputv31_offset_1 yolov30_yolooutputv31_anchor_1 yolov30_yolooutputv32_offset_2 yolov30_yolooutputv32_anchor_2 warnings.warn(msg) Warning: MXNet Parser has not supported operator null with name data. Warning: convert the null operator with name [data] into input layer. Warning: MXNet Parser has not supported operator null with name _defaultpreprocess0_init_scale. Warning: convert the null operator with name [_defaultpreprocess0_init_scale] into input layer. infer_shape error. Arguments: data: (1, 3, 608, 608) ... call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [17:49:07] src/c_api/c_api_symbolic.cc:540: InferShapeKeyword argument name data not found. Candidate arguments: [0]_defaultpreprocess0_init_scale

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants