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
Copy file name to clipboardExpand all lines: examples/community/README.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ If a community doesn't work as expected, please open an issue and ping the autho
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
20
21
+
| 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
22
22
23
23
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.
@@ -373,6 +374,49 @@ for i in range(4):
373
374
for i, img inenumerate(images):
374
375
img.save(f"./composable_diffusion/image_{i}.png")
375
376
```
377
+
378
+
### Imagic Stable Diffusion
379
+
Allows you to edit an image using stable diffusion.
380
+
381
+
```python
382
+
import requests
383
+
fromPILimport Image
384
+
from io import BytesIO
385
+
import torch
386
+
from diffusers import DiffusionPipeline, DDIMScheduler
Test seed resizing. Originally generate an image in 512 by 512, then generate image with same seed at 512 by 592 using seed resizing. Finally, generate 512 by 592 using original stable diffusion pipeline.
0 commit comments