stable diffusion image optimum-intel openvino diffusers onnx
from optimum.intel.openvino.modeling_diffusions import OVStableDiffusionXLPipeline
pipeline = OVStableDiffusionXLPipeline.from_pretrained(
“rupeshs/sdxl-turbo-openvino-int8”,
ov_config={“CACHE_DIR”: “”},
)
prompt = “”
images = pipeline(
prompt=prompt,
width=512,
height=512,
num_inference_steps=1,
guidance_scale=1.0,
).images
images[0].save(“out_image.png”)
This post was created with our nice and easy submission form. Create your post!
GIPHY App Key not set. Please check settings