Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
7fe638c5
Unverified
Commit
7fe638c5
authored
Mar 09, 2023
by
Will Berman
Committed by
GitHub
Mar 09, 2023
Browse files
update paint by example docs (#2598)
parent
c812d97d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py
...s/pipelines/paint_by_example/pipeline_paint_by_example.py
+3
-5
No files found.
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py
View file @
7fe638c5
...
@@ -136,7 +136,7 @@ def prepare_mask_and_masked_image(image, mask):
...
@@ -136,7 +136,7 @@ def prepare_mask_and_masked_image(image, mask):
class
PaintByExamplePipeline
(
DiffusionPipeline
):
class
PaintByExamplePipeline
(
DiffusionPipeline
):
r
"""
r
"""
Pipeline for
text
-guided image inpainting using Stable Diffusion. *This is an experimental feature*.
Pipeline for
image
-guided image inpainting using Stable Diffusion. *This is an experimental feature*.
This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods the
This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)
...
@@ -144,10 +144,8 @@ class PaintByExamplePipeline(DiffusionPipeline):
...
@@ -144,10 +144,8 @@ class PaintByExamplePipeline(DiffusionPipeline):
Args:
Args:
vae ([`AutoencoderKL`]):
vae ([`AutoencoderKL`]):
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.
text_encoder ([`CLIPTextModel`]):
image_encoder ([`PaintByExampleImageEncoder`]):
Frozen text-encoder. Stable Diffusion uses the text portion of
Encodes the example input image. The unet is conditioned on the example image instead of a text prompt.
[CLIP](https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel), specifically
the [clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14) variant.
tokenizer (`CLIPTokenizer`):
tokenizer (`CLIPTokenizer`):
Tokenizer of class
Tokenizer of class
[CLIPTokenizer](https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer).
[CLIPTokenizer](https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment