File size: 1,044 Bytes
b28e80d f84bfdf 7f5be8b 0577cd2 a0a39e3 79a0e58 a0a39e3 2140f10 a0a39e3 2140f10 a0a39e3 2140f10 06fa0f0 2140f10 06fa0f0 2140f10 a0a39e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
---
license: mit
language:
- en
tags:
- 'openvino '
- text-to-image
pipeline_tag: text-to-image
---
## Model Descriptions:
This repo contains OpenVino model files for SimianLuo's LCM_Dreamshaper_v7 int8 quantized.
This 8 bit model is **1.4x** faster than `float32` model.
## Generation Results:
<p align="center">
<img src="teaser-int8.jpg">
</p>
## Usage
You can try out model using [Fast SD CPU](https://github.com/rupeshs/fastsdcpu)
To run the model yourself, you can leverage the 🧨 Diffusers library:
1. Install the dependencies:
```
pip install optimum-intel openvino diffusers onnx
```
2. Run the model:
```py
from optimum.intel import OVLatentConsistencyModelPipeline
pipe = OVLatentConsistencyModelPipeline.from_pretrained(
"rupeshs/LCM-dreamshaper-v7-openvino-int8",
ov_config={"CACHE_DIR": ""},
)
prompt = "sailing ship in storm by Leonardo da Vinci"
images = pipe(
prompt=prompt,
width=512,
height=512,
num_inference_steps=4,
guidance_scale=8.0,
).images
images[0].save("out_image.png")
```
|