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

Import onnx model #59

Open
Cop46 opened this issue Jul 25, 2024 · 2 comments
Open

Import onnx model #59

Cop46 opened this issue Jul 25, 2024 · 2 comments

Comments

@Cop46
Copy link

Cop46 commented Jul 25, 2024

Hi, I have used optimum from huggingface to convert the model to onnx and this is impossible to open the model in unpaint because it doesn't contain safety_checker folder.

I have tried to change the code to don't use safety checker but I have one error "Saving initialized tensors (failed:open file model.onnx_data)"....
So, impossible to test your software actualy.
If you have a valid solution ?
Thanks.

@axodox
Copy link
Owner

axodox commented Jul 25, 2024

You may copy a safety checker onnx from any other model. Eg.: https://huggingface.co/axodoxian/protovision_xl_onnx/tree/main/safety_checker

@Cop46
Copy link
Author

Cop46 commented Jul 26, 2024

Hi, yes you are right but I think the onnx format or other have changed.
Have you tried onnx converted files by "huggingface Optimum" ? Maybe there is a version problem ?
Thanks for your good job and sharing your work !

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

2 participants