hanzhaogang opened a new issue #13327: Cannot find custom operator proposal Error whiling trying to export a Deformable-ConvNets which is based onmxnet into onnx URL: https://github.com/apache/incubator-mxnet/issues/13327 ## Description I trained a model under Deformable-ConvNets([https://github.com/msracver/Deformable-ConvNets](https://github.com/msracver/Deformable-ConvNets)) which is based on mxnet. While trying to export it into onnx format, I hit this error: ` Cannot find custom operator proposal` it seems that the mxnet cannot find teh `proposal` operator, is is possible that Deformable-ConvNets defined this operator? But proposal should be a common one used to suggest a proposed region which is used for further classification, I think mxnet should support this operator. ## Environment info (Required) Package used (Python/R/Scala/Julia): I'm using Python 3.6.6 & 3.7.1, both of them cannot avoid this issue. Compiler (gcc/clang/mingw/visual studio): visual studio 2017. MXNet commit hash: I copied the master branch. ## Error Message: D:\>python onnx_conv_test.py [14:15:48] C:\Jenkins\workspace\mxnet\mxnet\src\nnvm\legacy_json_util.cc:209: Lo ading symbol saved by previous version v1.2.1. Attempting to upgrade... Traceback (most recent call last): File "onnx_conv_test.py", line 25, in <module> converted_model_path = onnx_mxnet.export_model(sym, params, [input_shape], n p.float32, onnx_file) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-p ackages\mxnet\contrib\onnx\mx2onnx\export_model.py", line 75, in export_model sym_obj, params_obj = load_module(sym, params) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-p ackages\mxnet\contrib\onnx\mx2onnx\_export_helper.py", line 58, in load_module sym, arg_params, aux_params = mx.model.load_checkpoint(model_name, num_epoch s) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-p ackages\mxnet\model.py", line 437, in load_checkpoint symbol = sym.load('%s-symbol.json' % prefix) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-p ackages\mxnet\symbol\symbol.py", line 2620, in load check_call(_LIB.MXSymbolCreateFromFile(c_str(fname), ctypes.byref(handle))) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-p ackages\mxnet\base.py", line 252, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [14:15:48] C:\Jenkins\workspace\mxnet\mxnet\src\operator\ custom\custom.cc:104: Check failed: CustomOperator::Get()->Find(params.op_type) != nullptr Cannot find custom operator proposal ## Minimum reproducible example just run below python scripts suggested by the mxnet offical guide: [http://mxnet.incubator.apache.org/tutorials/onnx/export_mxnet_to_onnx.html](http://mxnet.incubator.apache.org/tutorials/onnx/export_mxnet_to_onnx.html) import mxnet as mx import numpy as np from mxnet.contrib import onnx as onnx_mxnet sym = 'rfcn_voc-symbol.json' params = 'rfcn_voc-0007.params' # Standard Imagenet input - 3 channels, 224*224 input_shape = (1,3,224,224) # Path of the output file onnx_file = 'test.onnx' # Invoke export model API. It returns path of the converted onnx model converted_model_path = onnx_mxnet.export_model(sym, params, [input_shape], np.float32, onnx_file)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
