Need OpenVino's Model Optimizer command line to generate IRs from the original model

#1
by arisha07 - opened

Hello there! , can you please share the steps and command line you used to convert the original model to OpenVINO IRs. Need this to help optimize these models further.

Since I did this a long time ago, it was necessary to use an older version of the diffusers library.

I merged the code I used into one file and put it here:
https://gist.github.com/ShadowPower/1632b77626f863c860130ec4cddf20d5

The diffusers library at that time was not compatible with exporting onnx and required some modifications, a modified version of which is available here:
https://github.com/harishanand95/diffusers

In fact, the newer versions of diffusers export onnx from this fork.
You can also try to modify the export script to be compatible with newer versions of the diffusers library.

Sign up or log in to comment