Skip to content

Commit 88c39c5

Browse files
apolinarioPrathik Rao
authored andcommitted
Add generic inference example to community pipeline readme (huggingface#874)
Update README.md
1 parent 82781f4 commit 88c39c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/community/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ To load a custom pipeline you just need to pass the `custom_pipeline` argument t
3030
pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", custom_pipeline="filename_in_the_community_folder")
3131
```
3232

33+
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.
34+
```py
35+
pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", custom_pipeline="filename_in_the_community_folder")
36+
```
37+
3338
## Example usages
3439

3540
### CLIP Guided Stable Diffusion

0 commit comments

Comments
 (0)