v1.10.0: Stable Diffusion XL pipelines
Stable Diffusion XL
Enable SD XL OpenVINO export and inference for text-to-image and image-to-image tasks by @echarlaix in #377
from optimum.intel import OVStableDiffusionXLPipeline
model_id = "stabilityai/stable-diffusion-xl-base-0.9"
pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id, export=True)
prompt = "sailing ship in storm by Leonardo da Vinci"
image = pipeline(prompt).images[0]
pipeline.save_pretrained("openvino-sd-xl-base-0.9")
More examples in documentation
Full Changelog: v1.9.0...v1.10.0