Update model card
Browse files
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
license: mit
|
3 |
---
|
4 |
|
5 |
-
# LCM_Dreamshaper_v7-
|
6 |
|
7 |
* Model creator: [SimianLuo](https://huggingface.co/SimianLuo)
|
8 |
* Original model: [SimianLuo/LCM_Dreamshaper_v7](https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7)
|
@@ -39,21 +39,21 @@ pip install optimum[openvino]
|
|
39 |
2. Run model inference:
|
40 |
|
41 |
```
|
42 |
-
from
|
43 |
-
from optimum.intel.openvino import OVModelForCausalLM
|
44 |
|
45 |
-
model_id = "OpenVINO/LCM_Dreamshaper_v7-
|
46 |
-
|
47 |
-
model = OVModelForCausalLM.from_pretrained(model_id)
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
outputs = model.generate(**inputs, max_length=200)
|
52 |
-
text = tokenizer.batch_decode(outputs)[0]
|
53 |
-
print(text)
|
54 |
```
|
55 |
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
## Legal information
|
59 |
|
|
|
2 |
license: mit
|
3 |
---
|
4 |
|
5 |
+
# LCM_Dreamshaper_v7-int8-ov
|
6 |
|
7 |
* Model creator: [SimianLuo](https://huggingface.co/SimianLuo)
|
8 |
* Original model: [SimianLuo/LCM_Dreamshaper_v7](https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7)
|
|
|
39 |
2. Run model inference:
|
40 |
|
41 |
```
|
42 |
+
from optimum.intel.openvino import OVStableDiffusionPipeline
|
|
|
43 |
|
44 |
+
model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
|
45 |
+
pipeline = OVStableDiffusionPipeline.from_pretrained(model_id)
|
|
|
46 |
|
47 |
+
prompt = "sailing ship in storm by Rembrandt"
|
48 |
+
images = pipeline(prompt, num_inference_steps=4).images
|
|
|
|
|
|
|
49 |
```
|
50 |
|
51 |
+
## Usage examples
|
52 |
+
|
53 |
+
* [OpenVINO notebooks](https://github.com/openvinotoolkit/openvino_notebooks):
|
54 |
+
- [Latent Consistency Model using Optimum-Intel OpenVINO](https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/latent-consistency-models-image-generation/latent-consistency-models-optimum-demo.ipynb)
|
55 |
+
* [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai):
|
56 |
+
- [C++ image generation pipeline](https://github.com/openvinotoolkit/openvino.genai/tree/master/image_generation/lcm_dreamshaper_v7/cpp)
|
57 |
|
58 |
## Legal information
|
59 |
|