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
+63Lines changed: 63 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ Please also check out our [Community Scripts](https://github.com/huggingface/dif
68
68
| InstantID Pipeline | Stable Diffusion XL Pipeline that supports InstantID |[InstantID Pipeline](#instantid-pipeline)|[](https://huggingface.co/spaces/InstantX/InstantID)|[Haofan Wang](https://github.com/haofanwang)|
69
69
| UFOGen Scheduler | Scheduler for UFOGen Model (compatible with Stable Diffusion pipelines) |[UFOGen Scheduler](#ufogen-scheduler)| - |[dg845](https://github.com/dg845)|
70
70
| Stable Diffusion XL IPEX Pipeline | Accelerate Stable Diffusion XL inference pipeline with BF16/FP32 precision on Intel Xeon CPUs with [IPEX](https://github.com/intel/intel-extension-for-pytorch)|[Stable Diffusion XL on IPEX](#stable-diffusion-xl-on-ipex)| - |[Dan Li](https://github.com/ustcuna/)|
71
+
| Stable Diffusion BoxDiff Pipeline | Training-free controlled generation with bounding boxes using [BoxDiff](https://github.com/showlab/BoxDiff)|[Stable Diffusion BoxDiff Pipeline](#stable-diffusion-boxdiff)| - |[Jingyang Zhang](https://github.com/zjysteven/)|
71
72
72
73
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.
BoxDiff is a training-free method for controlled generation with bounding box coordinates. It shoud work with any Stable Diffusion model. Below shows an example with `stable-diffusion-2-1-base`.
1682
+
```py
1683
+
import torch
1684
+
fromPILimport Image, ImageDraw
1685
+
from copy import deepcopy
1686
+
1687
+
from examples.community.pipeline_stable_diffusion_boxdiff import StableDiffusionBoxDiffPipeline
prompt ="as the aurora lights up the sky, a herd of reindeer leisurely wanders on the grassy meadow, admiring the breathtaking view, a serene lake quietly reflects the magnificent display, and in the distance, a snow-capped mountain stands majestically, fantasy, 8k, highly detailed"
This pipeline uses the Reference Control. Refer to the [sd-webui-controlnet discussion: Reference-only Control](https://github.com/Mikubill/sd-webui-controlnet/discussions/1236)[sd-webui-controlnet discussion: Reference-adain Control](https://github.com/Mikubill/sd-webui-controlnet/discussions/1280).
0 commit comments