Wrong result when running in onnx

#145
by larryrxu - opened

Has anyone got the result like this by executing with the onnx runtime?

Code:

from optimum.onnxruntime import ORTStableDiffusionXLPipeline

model_id = "stabilityai/stable-diffusion-xl-base-1.0"
pipeline = ORTStableDiffusionXLPipeline.from_pretrained(model_id)
prompt = "A majestic lion jumping from a big stone at night"
image = pipeline(prompt).images[0]

And this is the output(I have tried different texts)
d.jpg

Also it cannot run this codepipeline.to("cuda") with the following error:

ValueError: Asked to use CUDAExecutionProvider as an ONNX Runtime execution provider, but the available execution providers are ['AzureExecutionProvider', 'CPUExecutionProvider'].

Same issue here.
EDIT: Seems like it's specific to Windows, possibly a bug with ONNX runtime: https://github.com/huggingface/optimum/issues/1310

Sign up or log in to comment