-
Notifications
You must be signed in to change notification settings - Fork 6k
onnx inpainting error #917
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
Comments
cc @anton-l could you take this one? :-) |
Hi @pythoninoffice! With the release of https://huggingface.co/spaces/runwayml/stable-diffusion-inpainting we've decided to make the onnx inpainting pipeline work with finetuned checkpoints only (as the non-finetuned SD1.4 checkpoint wasn't nearly as good in terms of inpainting quality). The way to load those weights is: from diffusers import OnnxStableDiffusionInpaintPipeline
pipeline = OnnxStableDiffusionInpaintPipeline.from_pretrained(
"runwayml/stable-diffusion-inpainting", revision="onnx", provider="CPUExecutionProvider"
) The pytorch-to-onnx conversion script also supports custom finetuned checkpoints trained in a similar fashion, i.e. with 9 input channels for the UNet (4 latent + 2 mask + 3 masked image channels) Alternatively, you can still use the pytorch inpainting pipeline that handles non-finetuned SD checkpoints: |
Hi @anton-l appreciate your response! I can confirm the onnx inpainting pipeline works with the runwayml/stable-diffusion-inpainting checkpoints which seem to be SD v1.2 model based on the Model card/description. I also downloaded https://huggingface.co/runwayml/stable-diffusion-v1-5 unfortunately it doesn't work with the new pipeline either (same error). So it seems like SD1.2 is the only version compatible with onnx inpainting? Do you know if there's any way to convert a non-finetuned checkpoint to fine-tuned checkpoint? I'm pretty new to diffusers so please bear with me if the question doesn't make sense. Thank you! |
Gently ping @anton-l |
@pythoninoffice in the current release only |
@anton-l Thanks for the answer and apologies for my slow response! |
Signed-off-by: Gaurav Shukla <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
With the latest code, I was able to convert the SD1.4 checkpoint into onnx and successfully run txt2img and img2img using the new onnx pipelines. However the onnx inpainting isn't working.
Thank you!
Reproduction
Logs
System Info
diffuser version: 2a0c823
The text was updated successfully, but these errors were encountered: