Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Error while converting onnx model to Mxnet  #12851

@ashkanaev

Description

@ashkanaev

Hi!

Found that it's impossible to converting any model from pytorch which has Upsample layer.

sym, arg, aux = onnx_mxnet.import_model("torch_model.onnx")
  File "/home/user/anaconda3/envs/mx/lib/python3.5/site-packages/mxnet/contrib/onnx/onnx2mx/import_model.py", line 54, in import_model
    sym, arg_params, aux_params = graph.from_onnx(model_proto.graph)
  File "/home/user/anaconda3/envs/mx/lib/python3.5/site-packages/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/user/anaconda3/envs/mx/lib/python3.5/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 63, in _convert_operator
    raise NotImplementedError("Operator {} not implemented.".format(op_name))
NotImplementedError: Operator Upsample not implemented.

That means that majority of segmentation model are not convertible. Is there any trick to avoid this problem?

Hope for reply.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions