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
0edb4cac
Unverified
Commit
0edb4cac
authored
Aug 31, 2023
by
Ella Charlaix
Committed by
GitHub
Aug 31, 2023
Browse files
Fix image processor inputs width (#4853)
fix width for np array inputs
parent
85b3f08c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/image_processor.py
src/diffusers/image_processor.py
+1
-1
No files found.
src/diffusers/image_processor.py
View file @
0edb4cac
...
...
@@ -192,7 +192,7 @@ class VaeImageProcessor(ConfigMixin):
elif
isinstance
(
image
,
torch
.
Tensor
):
width
=
image
.
shape
[
3
]
else
:
height
=
image
.
shape
[
2
]
width
=
image
.
shape
[
2
]
width
,
height
=
(
x
-
x
%
self
.
config
.
vae_scale_factor
for
x
in
(
width
,
height
)
...
...
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