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
d9b5b43d
Unverified
Commit
d9b5b43d
authored
Dec 07, 2022
by
Fantasy-Studio
Committed by
GitHub
Dec 07, 2022
Browse files
Correct order height & width in pipeline_paint_by_example.py (#1589)
Update pipeline_paint_by_example.py
parent
bb2d7cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py
...s/pipelines/paint_by_example/pipeline_paint_by_example.py
+1
-1
No files found.
src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py
View file @
d9b5b43d
...
...
@@ -457,7 +457,7 @@ class PaintByExamplePipeline(DiffusionPipeline):
# 2. Preprocess mask and image
mask
,
masked_image
=
prepare_mask_and_masked_image
(
image
,
mask_image
)
width
,
height
=
masked_image
.
shape
[
-
2
:]
height
,
width
=
masked_image
.
shape
[
-
2
:]
# 3. Check inputs
self
.
check_inputs
(
example_image
,
height
,
width
,
callback_steps
)
...
...
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