|
--- |
|
tags: |
|
- text-to-image |
|
- stable-diffusion |
|
- openvino |
|
- optimization |
|
license: creativeml-openrail-m |
|
base_model: runwayml/stable-diffusion-v1-5 |
|
widget: |
|
- text: "portrait of a renaissance prince with golden armor, intricate details, oil painting" |
|
example_title: "Renaissance Portrait" |
|
--- |
|
|
|
# π Stable Diffusion 1.5 - OpenVINO Optimized |
|
|
|
**Hardware-optimized version of [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5)** |
|
*Accelerated with Intel OpenVINO toolkit* |
|
|
|
## π§ Quick Start |
|
|
|
### Basic Inference |
|
```python |
|
from optimum.intel import OVStableDiffusionPipeline |
|
import torch |
|
|
|
pipe = OVStableDiffusionPipeline.from_pretrained( |
|
"labaispeak/stable-diffusion-v1-5-openvino", |
|
device="auto" # Auto-detects GPU/CPU |
|
) |
|
|
|
prompt = "a mystical forest with glowing mushrooms, digital art" |
|
image = pipe(prompt, num_inference_steps=25, guidance_scale=7.5).images[0] |
|
image.save("fantasy_forest.png") |
|
|
|
|
|
``` |
|
## βοΈ Legal Notice |
|
|
|
This model inherits the [CreativeML Open RAIL-M License](https://huggingface.co/spaces/CompVis/stable-diffusion-license) from the base model. Key points: |
|
|
|
β
**Allowed**: Commercial use with restrictions |
|
β οΈ **Prohibited**: Harmful/hateful content generation |
|
π **Full License**: [View Here](https://huggingface.co/spaces/CompVis/stable-diffusion-license) |
|
|
|
## π Resources |
|
- [Original Model Card](https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5) |
|
- [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) |