-
Notifications
You must be signed in to change notification settings - Fork 469
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 3 ONNX support #2093
Comments
Hi ! this will be available once #2073 is merged 🤗 |
One small detail tho, |
Hi Ilyas, thanks for your clear response! I'm closing the issue - look forward the merge 🤗! |
merged ! 🤗 |
Feature request
Support Stable Diffusion 3's pipeline ONNX exportation.
Motivation
Stable Diffusion 3 is a new SOTA SD model which greatly improves its previous versions. It uses a new backbone for the image denoising via a Transformer architecture (namely MM-DiT) rather than the U-Net, used in previous SD pipelines. It also uses T5 for text encoding. Thus, we currently cannot convert SD3 to ONNX because we need a new pipeline called ORTStableDiffusion3Pipeline.
We cannot use the current ORTStableDiffusionPipeline with SD3 because of the new architecture. If we do either:
or via CLI:
optimum-cli export onnx --model stabilityai/stable-diffusion-3-medium-diffusers sd_v3_onnx/
We get the following error (expected as SD3 doesn't use U-Net anymore):
Your contribution
I can get started implementing such pipeline ASAP.
The text was updated successfully, but these errors were encountered: