Text-to-Image
Diffusers
Safetensors
ONNX
English
French
Russian
StableDiffusionPipeline
open-diffusion
od-v2
openskyml
Instructions to use openskyml/open-diffusion-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use openskyml/open-diffusion-v2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("openskyml/open-diffusion-v2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Commit ·
d0bc54a
1
Parent(s): 894e64e
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,6 +35,7 @@ Generate cool images with OpenDiffusion V2 (OD-v2)
|
|
| 35 |
### In Free Inference API:
|
| 36 |
```py
|
| 37 |
import requests
|
|
|
|
| 38 |
HF_READ_TOKEN = "..."
|
| 39 |
API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v2"
|
| 40 |
headers = {"Authorization": f"Bearer {HF_READ_TOKEN}"}
|
|
|
|
| 35 |
### In Free Inference API:
|
| 36 |
```py
|
| 37 |
import requests
|
| 38 |
+
|
| 39 |
HF_READ_TOKEN = "..."
|
| 40 |
API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v2"
|
| 41 |
headers = {"Authorization": f"Bearer {HF_READ_TOKEN}"}
|