Diffusers
English
stable-diffusion
stable-diffusion-diffusers
inpainting
art
artistic
anime
absolute-realism
Instructions to use diffusers/tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/tools 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/tools", 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
Download torch2_benchmark.ipynb from diffusers/tools: direct link, hf CLI and curl.
- Browser
- Download file 1.41 MB
-
https://huggingface.co/diffusers/tools/resolve/4e219d95018203daee25dbe9cfcfa0c0baaad039/torch2_benchmark.ipynb
- Command line
-
hf download hf://diffusers/tools@4e219d95018203daee25dbe9cfcfa0c0baaad039/torch2_benchmark.ipynb
-
curl -L -o torch2_benchmark.ipynb https://huggingface.co/diffusers/tools/resolve/4e219d95018203daee25dbe9cfcfa0c0baaad039/torch2_benchmark.ipynb
1.41 MB