Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Convert from IR format to ONNX

RyanLai
Beginner
2,023 Views

Hi,

I see a lot of documentation  on converting ONNX file into to IR format (.mapping, .xml, and .bin) using the model optimizer tool.

 

Is there a way to convert from IR format back to ONNX file format?

 

Thanks,

Ryan

0 Kudos
1 Solution
Peh_Intel
Moderator
1,990 Views

Hi Ryan,


Greetings to you.


The OpenVINO workflow does not support converting from IR format back to ONNX file format. Model Optimizer loads a model into memory, reads it, builds the internal representation of the model, optimizes it, and produces the Intermediate Representation (IR). IR is the only format that the Inference Engine accepts.


For your information, once the ONNX file format model is converted into IR format files, the IR format files are generated into a new folder while the original model is still located in its original directory.


Regards,

Peh


View solution in original post

2 Replies
Peh_Intel
Moderator
1,991 Views

Hi Ryan,


Greetings to you.


The OpenVINO workflow does not support converting from IR format back to ONNX file format. Model Optimizer loads a model into memory, reads it, builds the internal representation of the model, optimizes it, and produces the Intermediate Representation (IR). IR is the only format that the Inference Engine accepts.


For your information, once the ONNX file format model is converted into IR format files, the IR format files are generated into a new folder while the original model is still located in its original directory.


Regards,

Peh


Peh_Intel
Moderator
1,975 Views

Hi Ryan,


This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.



Regards,

Peh


0 Kudos
Reply