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
+65Lines changed: 65 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ If a community doesn't work as expected, please open an issue and ping the autho
16
16
| Speech to Image | Using automatic-speech-recognition to transcribe text and Stable Diffusion to generate images | [Speech to Image](#speech-to-image) | - | [Mikail Duzenli](https://github.com/MikailINTech)
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
+
| 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)|
19
20
20
21
21
22
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.
@@ -371,3 +372,67 @@ for i in range(4):
371
372
for i, img inenumerate(images):
372
373
img.save(f"./composable_diffusion/image_{i}.png")
373
374
```
375
+
376
+
### Imagic Stable Diffusion
377
+
Allows you to edit an image using stable diffusion.
378
+
379
+
380
+
```python
381
+
382
+
383
+
import torch as th
384
+
import numpy as np
385
+
import requests
386
+
fromPILimport Image
387
+
from io import BytesIO
388
+
import torch
389
+
from diffusers import DiffusionPipeline, DDIMScheduler
0 commit comments