Downloads · 30 days
4
11% of all-time downloads
helenai/SimianLuo-LCM_Dreamshaper_v7-ov
SimianLuo-LCM_Dreamshaper_v7-ov is a text-to-image model from helenai. Use it when you need an image from a text prompt. It is set up for diffusers.
This is the SimianLuo/LCMDreamshaperv7 model converted to OpenVINO for accelerated inference.
Downloads · 30 days
4
11% of all-time downloads
All-time downloads
36
Public
Repo size
4.3 GB
Likes
0
Public
Click a slice to open those files.
.bin4.3 GB · 100%
From the Hugging Face model README
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
import time
device = "GPU" # for best results, use "GPU" for devices with Intel iGPU or dGPU. "CPU" can also be used.
model_id = "helenai/SimianLuo-LCM_Dreamshaper_v7-ov"
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, device=device, compile=False)
pipeline.reshape(1,512,512,1) # reshape to static shapes for better performance
pipeline.compile()
prompt = "a robot discovering nature"
start = time.perf_counter()
image = pipeline(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
end = time.perf_counter()
print(f"Duration: {end-start:.2f}")
image.save("robot.png")