Instructions to use diffusers/tiny-stable-diffusion-torch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/tiny-stable-diffusion-torch with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/tiny-stable-diffusion-torch", 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 README.md from diffusers/tiny-stable-diffusion-torch: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/diffusers/tiny-stable-diffusion-torch/resolve/refs%2Fpr%2F1/README.md
- Command line
-
hf download hf://diffusers/tiny-stable-diffusion-torch@refs/pr/1/README.md
-
curl -L -o README.md https://huggingface.co/diffusers/tiny-stable-diffusion-torch/resolve/refs%2Fpr%2F1/README.md
254 Bytes
| license: apache-2.0 | |
| duplicated_from: hf-internal-testing/tiny-stable-diffusion-torch | |
| ```python | |
| from diffusers import StableDiffusionPipeline | |
| pipe = StableDiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-torch") | |
| ``` | |