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.

Export to ONNX not working as expected for ArcFace model #13044

@ankkhedia

Description

@ankkhedia

I am trying to export Arcface model to ONNX.
The model is located in this public S3 bucket
https://s3.amazonaws.com/onnx-model-zoo/arcface/resnet100/resnet100-0000.params
https://s3.amazonaws.com/onnx-model-zoo/arcface/resnet100/resnet100-symbol.json
When we export to ONNX we get float64 dtype for minscalar layer whereas the ONNX specification doesn't support float64.

Minimum reproducible example

from mxnet.contrib import onnx as onnx_mxnet
model = onnx_mxnet.export_model('resnet100-symbol.json', 'resnet100-0000.params', [(1,3,112,112)], onnx_file_path='resnet100.onnx')
and then visualise the model using netron
More details can be found here onnx/models#91

Steps to reproduce

Please use the above snippet to reproduce.

What have you tried to solve it?

  1. Seems like a bug in the conversion from MXNet to ONNX for particular layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions