-
Notifications
You must be signed in to change notification settings - Fork 12
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
Stable diffusion model fails on Mac #22
Comments
@philloooo Thanks for the report, I assume this is also caused by Safety Checker model, submitted PR in #24 If you find any log mentioned this error happens for other SD 1.5 models (text encoder, unet or VAE decoder), please let us know. |
@philloooo The int32 Safety Checher model has been updated in #29, please try on your side.
|
Thanks @philloooo , so this issue is not caused by Safety Checker, but the Text Encoder and more models of SD 1.5 and SD Turbo, we found many int64 for Gather indices and other issues below:
There is no simple int32 conversion solution for existing ONNX int64 models. It's not easy to force developers to use int32 models, especially there are already plenty of SOTA int64 models in hugginface.co and other model zoos, this question needs to be dissussed in the WG. |
Yeah I think we need an automatic way to handle such case in ONNX. Is microsoft/onnxruntime#21401 sufficient to solve all the errors you mentioned above? |
Not enough, the |
I think it's very undesirable to just fall back to CPU EP, which just means these ops don't work on some devices for WebNN and could have a significant performance penalty to switching between EPs. |
That maybe a good solution, I will try once |
@philloooo, how does CoreML handle the cast from int64 to int32 when data overflow happens? Two concerns:
|
@Honry answered here microsoft/onnxruntime#21401 (comment) |
Hi!
I am trying to run https://microsoft.github.io/webnn-developer-preview/demos/stable-diffusion-1.5/ with HEAD of chromium and got
The text was updated successfully, but these errors were encountered: