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
a6375d41
Unverified
Commit
a6375d41
authored
Jun 16, 2024
by
YiYi Xu
Committed by
GitHub
Jun 16, 2024
Browse files
Image processor latent (#8513)
* fix * up --------- Co-authored-by:
yiyixuxu
<
yixu310@gmail,com
>
parent
8e1b7a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/diffusers/image_processor.py
src/diffusers/image_processor.py
+1
-2
No files found.
src/diffusers/image_processor.py
View file @
a6375d41
...
...
@@ -569,7 +569,7 @@ class VaeImageProcessor(ConfigMixin):
channel
=
image
.
shape
[
1
]
# don't need any preprocess if the image is latents
if
channel
==
4
:
if
channel
==
self
.
vae_latent_channels
:
return
image
height
,
width
=
self
.
get_default_height_width
(
image
,
height
,
width
)
...
...
@@ -585,7 +585,6 @@ class VaeImageProcessor(ConfigMixin):
FutureWarning
,
)
do_normalize
=
False
if
do_normalize
:
image
=
self
.
normalize
(
image
)
...
...
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