Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
stable-diffusion
cvpr
image-generation
compositionality
Instructions to use mlpc-lab/TokenCompose_SD14_B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mlpc-lab/TokenCompose_SD14_B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mlpc-lab/TokenCompose_SD14_B", 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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ We strongly recommend using the [🤗Diffuser](https://github.com/huggingface/di
|
|
| 19 |
import torch
|
| 20 |
from diffusers import StableDiffusionPipeline
|
| 21 |
|
| 22 |
-
model_id = "mlpc-lab/
|
| 23 |
device = "cuda"
|
| 24 |
|
| 25 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
|
|
|
| 19 |
import torch
|
| 20 |
from diffusers import StableDiffusionPipeline
|
| 21 |
|
| 22 |
+
model_id = "mlpc-lab/TokenCompose_SD14_B"
|
| 23 |
device = "cuda"
|
| 24 |
|
| 25 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|