labaispeak's picture
Update README.md
3904560 verified
---
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)