Update README.md
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ The provided OpenVINO™ IR model is compatible with:
|
|
| 25 |
1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
|
| 26 |
|
| 27 |
```
|
| 28 |
-
pip install optimum[openvino]
|
| 29 |
```
|
| 30 |
|
| 31 |
2. Run model inference:
|
|
@@ -34,7 +34,7 @@ pip install optimum[openvino]
|
|
| 34 |
from optimum.intel.openvino import OVDiffusionPipeline
|
| 35 |
|
| 36 |
model_id = "OpenVINO/stable-diffusion-v1-5-fp16-ov"
|
| 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
|
|
@@ -45,7 +45,7 @@ images = pipeline(prompt, num_inference_steps=20).images
|
|
| 45 |
1. Install packages required for using OpenVINO GenAI.
|
| 46 |
```
|
| 47 |
pip install huggingface_hub
|
| 48 |
-
pip install
|
| 49 |
```
|
| 50 |
|
| 51 |
2. Download model from HuggingFace Hub
|
|
|
|
| 25 |
1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
|
| 26 |
|
| 27 |
```
|
| 28 |
+
pip install optimum[openvino] diffusers --extra-index-url https://download.pytorch.org/whl/cpu
|
| 29 |
```
|
| 30 |
|
| 31 |
2. Run model inference:
|
|
|
|
| 34 |
from optimum.intel.openvino import OVDiffusionPipeline
|
| 35 |
|
| 36 |
model_id = "OpenVINO/stable-diffusion-v1-5-fp16-ov"
|
| 37 |
+
pipeline = OVDiffusionPipeline.from_pretrained(model_id, safety_checker=None)
|
| 38 |
|
| 39 |
prompt = "sailing ship in storm by Rembrandt"
|
| 40 |
images = pipeline(prompt, num_inference_steps=20).images
|
|
|
|
| 45 |
1. Install packages required for using OpenVINO GenAI.
|
| 46 |
```
|
| 47 |
pip install huggingface_hub
|
| 48 |
+
pip install openvino openvino-tokenizers openvino-genai
|
| 49 |
```
|
| 50 |
|
| 51 |
2. Download model from HuggingFace Hub
|