Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
stable-diffusion
cvpr
image-generation
compositionality
Instructions to use mlpc-lab/TokenCompose_SD21_B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mlpc-lab/TokenCompose_SD21_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_SD21_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
Download vae/diffusion_pytorch_model.safetensors from mlpc-lab/TokenCompose_SD21_B: direct link, hf CLI and curl.
- Browser
- Download file 335 MB
-
https://huggingface.co/mlpc-lab/TokenCompose_SD21_B/resolve/main/vae/diffusion_pytorch_model.safetensors
- Command line
-
hf download hf://mlpc-lab/TokenCompose_SD21_B/vae/diffusion_pytorch_model.safetensors
-
curl -L -o diffusion_pytorch_model.safetensors https://huggingface.co/mlpc-lab/TokenCompose_SD21_B/resolve/main/vae/diffusion_pytorch_model.safetensors
335 MB
- Xet hash:
- ebbb0dc79a40c4d4aa08a708aa9d4edfaa62bd72bfaa291322e5858fc542efee
- Size of remote file:
- 335 MB
- SHA256:
- 2aa1f43011b553a4cba7f37456465cdbd48aab7b54b9348b890e8058ea7683ec
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.