Text-to-Image
Diffusers
Safetensors
StableDiffusionXLInpaintPipeline
stable-diffusion-xl
stable-diffusion-xl-diffusers
inpainting
Instructions to use diffusers/stable-diffusion-xl-1.0-inpainting-0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/stable-diffusion-xl-1.0-inpainting-0.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import AutoPipelineForInpainting from diffusers.utils import load_image # switch to "mps" for apple devices pipe = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", dtype=torch.float16, device_map="cuda") img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png" mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png" image = load_image(img_url).resize((1024, 1024)) mask_image = load_image(mask_url).resize((1024, 1024)) prompt = "a tiger sitting on a park bench" generator = torch.Generator(device="cuda").manual_seed(0) image = pipe( prompt=prompt, image=image, mask_image=mask_image, guidance_scale=8.0, num_inference_steps=20, # steps between 15 and 30 work well for us strength=0.99, # make sure to use `strength` below 1.0 generator=generator, ).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
🚩 Report: Spam
🔥 1
#29 opened 4 months ago
by
idk290329f
Request: DOI
#28 opened about 1 year ago
by
Yup911
Upload images (1).jpeg
#27 opened almost 2 years ago
by
Djfjdjdu2
Dataset
2
#26 opened almost 2 years ago
by
richardshkim
Create linlin19870805
#25 opened about 2 years ago
by
linlin19870805
Update README.md
1
#24 opened about 2 years ago
by
liberty4321
inpainting model for Flux dev
#23 opened about 2 years ago
by deleted
fint tuning
1
#22 opened about 2 years ago
by
cahodk
GPU
#21 opened about 2 years ago
by
yangxiaoze
Unable To generate accurate faces with ip adapter.
1
#20 opened about 2 years ago
by
ShreeKanade07
Can gradients flow through this pipeline
2
#19 opened about 2 years ago
by
gchen019
Image quality/color change of non-masked pixels when prompt_strength=1.0
2
#18 opened over 2 years ago
by
Akhileshjoshi
Is there a combined model?
#16 opened almost 3 years ago
by
lucasjin
the inpainting result by this repo is false, the resolution degrade and noise increase!
1
#15 opened almost 3 years ago
by
lvZic
Areas masked as NOT for inpaint are nonetheless altered, why is this?
❤️ 3
7
#14 opened almost 3 years ago
by
spejamas
the inpainted result seems blury, why?
😔🤯 2
2
#13 opened almost 3 years ago
by
lvZic
release timeline
👍 3
#12 opened about 3 years ago
by
zcding
can someone make a version for use in automatic1111?
3
#11 opened about 3 years ago
by
nikgtn
Gatekeeping training method
👍 12
#10 opened about 3 years ago
by
Samarsheikh001
Difficulty in Removing object?
2
#8 opened about 3 years ago
by
JOHANhuynhhhhh
output_type="latent" not working
#7 opened about 3 years ago
by
Yakonrus
Comfyui Error - no attribute none
2
#6 opened about 3 years ago
by
Kringokrungo
Release of training code?
👍 8
4
#4 opened about 3 years ago
by
nicklocascio
What is the difference from using StableDiffusionXLInpaintPipeline with the stabilityai/stable-diffusion-xl-base-1.0 model?
2
#2 opened about 3 years ago
by
Yakonrus
Possible to get YAML configuration for these models?
7
#1 opened about 3 years ago
by
CmdrGrunt