Image To Image Inpainting Stable Diffusion
hf-notebooksdiffusers
Export
Image to Image Inpainting Stable Diffusion
Similar to the standard stable diffusion inpainting example, except with the addition of an inner_image argument.
image, inner_image, and mask should have the same dimensions. inner_image should have an alpha (transparency) channel.
The aim is to overlay two images, then mask out the boundary between image and inner_image to allow stable diffusion to make the connection more seamless. For example, this could be used to place a logo on a shirt and make it blend seamlessly.This script was contributed by Alex McKinney and the notebook by Parag Ekbote.
[ ]
[7]
Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s]
An error occurred while trying to fetch /home/zeus/.cache/huggingface/hub/models--stable-diffusion-v1-5--stable-diffusion-inpainting/snapshots/8a4288a76071f7280aedbdb3253bdb9e9d5d84bb/unet: Error no file named diffusion_pytorch_model.safetensors found in directory /home/zeus/.cache/huggingface/hub/models--stable-diffusion-v1-5--stable-diffusion-inpainting/snapshots/8a4288a76071f7280aedbdb3253bdb9e9d5d84bb/unet. Defaulting to unsafe serialization. Pass `allow_pickle=False` to raise an error instead. An error occurred while trying to fetch /home/zeus/.cache/huggingface/hub/models--stable-diffusion-v1-5--stable-diffusion-inpainting/snapshots/8a4288a76071f7280aedbdb3253bdb9e9d5d84bb/vae: Error no file named diffusion_pytorch_model.safetensors found in directory /home/zeus/.cache/huggingface/hub/models--stable-diffusion-v1-5--stable-diffusion-inpainting/snapshots/8a4288a76071f7280aedbdb3253bdb9e9d5d84bb/vae. Defaulting to unsafe serialization. Pass `allow_pickle=False` to raise an error instead.
0%| | 0/50 [00:00<?, ?it/s]