You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/09/01 16:22:51 UTC

[GitHub] [incubator-mxnet] bfgoldstein opened a new issue #19066: Failed to load Arcface from ONNX model zoo

bfgoldstein opened a new issue #19066:
URL: https://github.com/apache/incubator-mxnet/issues/19066


   ## Description
   I was trying to load the Arcface model downloaded from [ONNX model zoo](https://github.com/onnx/models/tree/master/vision/body_analysis/arcface), but a "NotImplementedError: Operator Sub not implemented." exception was raised.
   
   It seems that this model had some problems before, but it was fixed [here](https://github.com/apache/incubator-mxnet/pull/17711). However, there is a [commit](https://github.com/apache/incubator-mxnet/commit/fb73de7582de4e622299a4ad045e25f771568193#diff-7b131e64cf22cff749bd44de10b64b7f) made on June 10 that removes support for some ONNX Operators, like add, subtract, multiply, and divide.
   
   ### Error Message
   ```
   [12:03:05] /home/bruno/mxnet/mxnet/src/storage/storage.cc:198: Using Pooled (Naive) StorageManager for CPU
   Traceback (most recent call last):
     File "error_reproduce.py", line 5, in <module>
       sym, arg_params, aux_params = import_model(model)
     File "/home/bruno/mxnet/mxnet/python/mxnet/contrib/onnx/onnx2mx/import_model.py", line 59, in import_model
       sym, arg_params, aux_params = graph.from_onnx(model_proto.graph)
     File "/home/bruno/mxnet/mxnet/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 115, in from_onnx
       mxnet_sym = self._convert_operator(node_name, op_name, onnx_attr, inputs)
     File "/home/bruno/mxnet/mxnet/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 63, in _convert_operator
       raise NotImplementedError("Operator {} not implemented.".format(op_name))
   NotImplementedError: Operator Sub not implemented.
   ```
   
   ## To Reproduce
   
   - Download the model from [ONNX model zoo](https://github.com/onnx/models/tree/master/vision/body_analysis/arcface/model). File **arcfaceresnet100-8.onnx** (git lfs);
   - Then run the python script below
   
   ### Minimal python script:
   
   ```
   import sys
   from mxnet.contrib.onnx.onnx2mx.import_model import import_model
   
   model = sys.argv[1]
   sym, arg_params, aux_params = import_model(model)
   ```
   
   ## Environment
   
   - OS: CentOS 8.2
   - Python: 3.7.7
   - ONNX: 1.7.0
   - MXNET: master (built from source)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #19066: Failed to load Arcface from ONNX model zoo

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #19066:
URL: https://github.com/apache/incubator-mxnet/issues/19066#issuecomment-684977521


   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org