Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
|
|
|
|
3 |
---
|
4 |
|
5 |
# stable-diffusion-v1-5-fp16-ov
|
@@ -15,8 +17,8 @@ This is [stable-diffusion-v1-5/stable-diffusion-v1-5](https://huggingface.co/sta
|
|
15 |
|
16 |
The provided OpenVINO™ IR model is compatible with:
|
17 |
|
18 |
-
* OpenVINO version
|
19 |
-
* Optimum Intel 1.
|
20 |
|
21 |
## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
|
22 |
|
@@ -35,7 +37,7 @@ model_id = "OpenVINO/stable-diffusion-v1-5-fp16-ov"
|
|
35 |
pipeline = OVDiffusionPipeline.from_pretrained(model_id)
|
36 |
|
37 |
prompt = "sailing ship in storm by Rembrandt"
|
38 |
-
images = pipeline(prompt, num_inference_steps=
|
39 |
```
|
40 |
|
41 |
## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
|
@@ -68,7 +70,7 @@ device = "CPU"
|
|
68 |
pipe = ov_genai.Text2ImagePipeline(model_path, device)
|
69 |
|
70 |
prompt = "sailing ship in storm by Rembrandt"
|
71 |
-
image_tensor = pipe.generate(prompt, num_inference_steps=
|
72 |
image = Image.fromarray(image_tensor.data[0])
|
73 |
|
74 |
```
|
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
3 |
+
base_model:
|
4 |
+
- stable-diffusion-v1-5/stable-diffusion-v1-5
|
5 |
---
|
6 |
|
7 |
# stable-diffusion-v1-5-fp16-ov
|
|
|
17 |
|
18 |
The provided OpenVINO™ IR model is compatible with:
|
19 |
|
20 |
+
* OpenVINO version 2025.0.0 and higher
|
21 |
+
* Optimum Intel 1.22.0 and higher
|
22 |
|
23 |
## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
|
24 |
|
|
|
37 |
pipeline = OVDiffusionPipeline.from_pretrained(model_id)
|
38 |
|
39 |
prompt = "sailing ship in storm by Rembrandt"
|
40 |
+
images = pipeline(prompt, num_inference_steps=20).images
|
41 |
```
|
42 |
|
43 |
## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
|
|
|
70 |
pipe = ov_genai.Text2ImagePipeline(model_path, device)
|
71 |
|
72 |
prompt = "sailing ship in storm by Rembrandt"
|
73 |
+
image_tensor = pipe.generate(prompt, num_inference_steps=20)
|
74 |
image = Image.fromarray(image_tensor.data[0])
|
75 |
|
76 |
```
|