Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: stable-diffusion-v1-5/stable-diffusion-v1-5
|
3 |
+
license: creativeml-openrail-m
|
4 |
+
tags:
|
5 |
+
- stable-diffusion
|
6 |
+
- stable-diffusion-diffusers
|
7 |
+
- text-to-image
|
8 |
+
- openvino
|
9 |
+
- nncf
|
10 |
+
- fp16
|
11 |
+
inference: true
|
12 |
+
---
|
13 |
+
|
14 |
+
This model is a quantized version of [`stable-diffusion-v1-5/stable-diffusion-v1-5`](https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5) and is converted to the OpenVINO format. This model was obtained via the [nncf-quantization](https://huggingface.co/spaces/echarlaix/nncf-quantization) space with [optimum-intel](https://github.com/huggingface/optimum-intel).
|
15 |
+
First make sure you have `optimum-intel` installed:
|
16 |
+
```bash
|
17 |
+
pip install optimum[openvino]
|
18 |
+
```
|
19 |
+
To load your model you can do as follows:
|
20 |
+
```python
|
21 |
+
from optimum.intel import OVPipelineForText2Image
|
22 |
+
model_id = "AIFunOver/stable-diffusion-v1-5-openvino-fp16"
|
23 |
+
model = OVPipelineForText2Image.from_pretrained(model_id)
|
24 |
+
```
|