Text-to-Image
Diffusers
TensorBoard
Chinese
AltDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
multilingual
English(En)
Chinese(Zh)
Spanish(Es)
French(Fr)
Russian(Ru)
Japanese(Ja)
Korean(Ko)
Arabic(Ar)
Italian(It)
Instructions to use BAAI/DreamBooth-AltDiffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BAAI/DreamBooth-AltDiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BAAI/DreamBooth-AltDiffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "一张<鸣人>男孩的照片" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
| 3 |
---
|
| 4 |
+
#This is a DreamBooth model trained on several public available images from web.
|
| 5 |
+
```
|
| 6 |
+
from diffusers import AltDiffusionPipeline, DPMSolverMultistepScheduler
|
| 7 |
+
import torch
|
| 8 |
+
|
| 9 |
+
pipe = AltDiffusionPipeline.from_pretrained("BAAI/DreamBooth-AltDiffusion")
|
| 10 |
+
pipe = pipe.to("cuda")
|
| 11 |
+
|
| 12 |
+
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
| 13 |
+
|
| 14 |
+
prompt = "一张<鸣人>男孩的照片"
|
| 15 |
+
image = pipe(prompt, num_inference_steps=25).images[0]
|
| 16 |
+
image.show()
|
| 17 |
+
```
|