Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run a model (e.g. padim) with export to onnx enabled #502

Closed
wangzuo-hx opened this issue Aug 15, 2022 · 3 comments
Closed

run a model (e.g. padim) with export to onnx enabled #502

wangzuo-hx opened this issue Aug 15, 2022 · 3 comments

Comments

@wangzuo-hx
Copy link

wangzuo-hx commented Aug 15, 2022

How do you convert the algorithm to onnx for model deployment?(e.g. Padim)

@ashishbdatta
Copy link
Contributor

Since applying the OpenVINO optimization will generate an .onnx file you could this to your config:

optimization:
  openvino:
    apply: true

The ONNX file should be saved near your model weights folder.

I am creating a #509 PR to make this export more generic. You could also pull from top of main branch once it is merged.

@djdameln
Copy link
Contributor

The most recent up-to-date instructions for exporting a trained model can be found on this page in our documentation. I'm closing this issue now, but please feel free to re-open if you have any additional questions.

@Tekno-H
Copy link

Tekno-H commented Nov 15, 2022

The most recent up-to-date instructions for exporting a trained model can be found on this page in our documentation. I'm closing this issue now, but please feel free to re-open if you have any additional questions.

Hello @djdameln ,
Great work you have done here.
I am trying to export a trained CFLOW model to onnx format, I don't want to retrain the model.
How can I achieve that ?
The posted link is dead, and everything on the documentation suggests to re-train the model with the export flag enabled.
Also I want to use a different back-end, MobileNetV3_large for example.
What changes should I do?
I have spent several days on this, and I believe you can help.
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants