You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* adds image to image inpainting with `PIL.Image.Image` inputs
the base implementation claims to support `torch.Tensor` but seems it
would also fail in this case.
* `make style` and `make quality`
* updates community examples readme
Co-authored-by: Patrick von Platen <[email protected]>
Copy file name to clipboardExpand all lines: examples/community/README.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ If a community doesn't work as expected, please open an issue and ping the autho
17
17
| Wild Card Stable Diffusion | Stable Diffusion Pipeline that supports prompts that contain wildcard terms (indicated by surrounding double underscores), with values instantiated randomly from a corresponding txt file or a dictionary of possible values |[Wildcard Stable Diffusion](#wildcard-stable-diffusion)| - |[Shyam Sudhakaran](https://github.com/shyamsn97)|
18
18
| Composable Stable Diffusion| Stable Diffusion Pipeline that supports prompts that contain "|" in prompts (as an AND condition) and weights (separated by "|" as well) to positively / negatively weight prompts. |[Composable Stable Diffusion](#composable-stable-diffusion)| - |[Mark Rich](https://github.com/MarkRich)|
19
19
| Seed Resizing Stable Diffusion| Stable Diffusion Pipeline that supports resizing an image and retaining the concepts of the 512 by 512 generation. |[Seed Resizing](#seed-resizing)| - |[Mark Rich](https://github.com/MarkRich)|
20
-
21
20
| Imagic Stable Diffusion | Stable Diffusion Pipeline that enables writing a text prompt to edit an existing image|[Imagic Stable Diffusion](#imagic-stable-diffusion)| - |[Mark Rich](https://github.com/MarkRich)|
21
+
| Image to Image Inpainting Stable Diffusion | Stable Diffusion Pipeline that enables the overlaying of two images and subsequent inpainting|[Image to Image Inpainting Stable Diffusion](#image-to-image-inpainting-stable-diffusion)| - |[Alex McKinney](https://github.com/vvvm23)|
22
22
23
23
24
24
To load a custom pipeline you just need to pass the `custom_pipeline` argument to `DiffusionPipeline`, as one of the files in `diffusers/examples/community`. Feel free to send a PR with your own pipelines, we will merge them quickly.
Similar to the standard stable diffusion inpainting example, except with the addition of an `inner_image` argument.
508
+
509
+
`image`, `inner_image`, and `mask` should have the same dimensions. `inner_image` should have an alpha (transparency) channel.
510
+
511
+
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.
512
+
For example, this could be used to place a logo on a shirt and make it blend seamlessly.
513
+
514
+
```python
515
+
importPIL
516
+
import torch
517
+
518
+
from diffusers import StableDiffusionInpaintPipeline
0 commit comments