helenai's picture
Update README.md
1bd9b3f verified
metadata
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - openvino

SimianLuo/LCM_Dreamshaper_v7 for OpenVINO

This is the SimianLuo/LCM_Dreamshaper_v7 model converted to OpenVINO for accelerated inference.

Requirements: pip install optimum[openvino,diffusers]

from optimum.intel import OVLatentConsistencyModelPipeline

device = "CPU"  # set to "GPU" for inference on Intel iGPU or dGPU
model_id = "helenai/SimianLuo-LCM_Dreamshaper_v7-ov"
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, device=device)
prompt = "sailing ship in storm by Leonardo da Vinci"
image = pipeline(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
image.save("sailing_ship.png")