Spaces:
Build error
Build error
File size: 318 Bytes
171f55b |
1 2 3 4 5 6 7 |
from optimum.onnxruntime import ORTStableDiffusionPipeline
model_id = "eatdianatoday/yiwu"
pipe = ORTStableDiffusionPipeline.from_pretrained(model_id, export=True)
prompt = "a photo of an astronaut riding a horse on mars"
images = pipe(prompt).images[0]
pipe.save_pretrained("/root/autodl-tmp/onnx-novelai-diffusion") |