File size: 1,632 Bytes
4065128 cf70ca5 4065128 f967bae 3904560 f967bae 3904560 f967bae fc6b443 f967bae 3904560 |
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 |
---
tags:
- text-to-image
- stable-diffusion
- openvino
- int8
- quantized
license: creativeml-openrail-m
base_model: stabilityai/stable-diffusion-2-1
widget:
- text: "a cute corgi wearing a crown, portrait, detailed"
example_title: "Corgi Example"
---
# π Stable Diffusion 2.1 - OpenVINO INT8 Optimized
**Quantized version of [stabilityai/stable-diffusion-2-1](https://huggingface.co/stabilityai/stable-diffusion-2-1)**
*Optimized for Intel hardware with OpenVINO*
## π§ Usage
### Basic Inference
```python
from optimum.intel import OVStableDiffusionPipeline
pipe = OVStableDiffusionPipeline.from_pretrained(
"labaispeak/stable-diffusion-2-1-openvino-int8",
device="auto" # Automatically selects GPU/CPU
)
prompt = "a beautiful landscape at sunset, oil painting style"
image = pipe(prompt, num_inference_steps=20).images[0]
image.save("output.png")
```
## βοΈ Legal Notice
This model inherits the [CreativeML Open RAIL-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) from the base model. Key points:
β
**Allowed**: Commercial use with restrictions
β οΈ **Prohibited**: Harmful/hateful content generation
π **Full License**: [View Here](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)
## π Resources
- [Original Model Card](https://huggingface.co/stabilityai/stable-diffusion-2-1)
- [OpenVINO Optimization Guide](https://docs.openvino.ai/2023.0/openvino_docs_model_optimization_guide.html)
- [Safety Checker Usage](https://huggingface.co/docs/diffusers/main/en/api/pipelines/stable_diffusion/stable_diffusion_safe) |