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
+61-1Lines changed: 61 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ prompt-to-prompt | change parts of a prompt and retain image structure (see [pap
58
58
| Null-Text Inversion Pipeline | Implement [Null-text Inversion for Editing Real Images using Guided Diffusion Models](https://arxiv.org/abs/2211.09794) as a pipeline. |[Null-Text Inversion](https://github.com/google/prompt-to-prompt/)| - |[Junsheng Luan](https://github.com/Junsheng121)|
59
59
| Rerender A Video Pipeline | Implementation of [[SIGGRAPH Asia 2023] Rerender A Video: Zero-Shot Text-Guided Video-to-Video Translation](https://arxiv.org/abs/2306.07954)|[Rerender A Video Pipeline](#Rerender_A_Video)| - |[Yifan Zhou](https://github.com/SingleZombie)|
60
60
| StyleAligned Pipeline | Implementation of [Style Aligned Image Generation via Shared Attention](https://arxiv.org/abs/2312.02133)|[StyleAligned Pipeline](#stylealigned-pipeline)|[](https://drive.google.com/file/d/15X2E0jFPTajUIjS0FzX50OaHsCbP2lQ0/view?usp=sharing)|[Aryan V S](https://github.com/a-r-r-o-w)|
61
+
| IP Adapter FaceID Stable Diffusion | Stable Diffusion Pipeline that supports IP Adapter Face ID |[IP Adapter Face ID](#ip-adapter-face-id)| - |[Fabio Rigano](https://github.com/fabiorigano)|
61
62
62
63
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.
63
64
```py
@@ -3406,4 +3407,63 @@ images = pipe(
3406
3407
3407
3408
# Disable StyleAligned if you do not wish to use it anymore
3408
3409
pipe.disable_style_aligned()
3409
-
```
3410
+
```
3411
+
3412
+
### IP Adapter Face ID
3413
+
IP Adapter FaceID is an experimental IP Adapter model that uses image embeddings generated by `insightface`, so no image encoder needs to be loaded.
3414
+
You need to install `insightface` and all its requirements to use this model.
3415
+
You must pass the image embedding tensor as `image_embeds` to the StableDiffusionPipeline instead of `ip_adapter_image`.
3416
+
You have to disable PEFT BACKEND in order to load weights.
3417
+
3418
+
```py
3419
+
import diffusers
3420
+
diffusers.utils.USE_PEFT_BACKEND=False
3421
+
import torch
3422
+
from diffusers.utils import load_image
3423
+
import cv2
3424
+
import numpy as np
3425
+
from diffusers import DiffusionPipeline, AutoencoderKL, DDIMScheduler
0 commit comments