Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →HuggingFace Diffusers library for text-to-image, image-to-image, inpainting, and super-resolution with Stable Diffusion, Flux, and SDXL.
Use this skill ↓73% 91%+18 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 16 of 22 without it.
3 of 3 safety checks passed
Not used yet
HuggingFace Diffusers provides diffusion models for text-to-image, image-to-image, inpainting, and super-resolution. Supports Stable Diffusion, Flux, and SDXL with full pipeline customization.
uv pip install diffusers transformers accelerate
from diffusers import StableDiffusionPipeline
import torch
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
).to("cuda")
image = pipe("a photo of a cat wearing a space suit").images[0]
image.save("cat_astronaut.png")
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
).to("cuda")
image = pipe(prompt="a cinematic shot of a mountain", num_inference_steps=30).images[0]
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.