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")
- Downloads last month
- 7
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.