1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Image processor latent (#8513)

* fix

* up

---------

Co-authored-by: yiyixuxu <yixu310@gmail,com>
This commit is contained in:
YiYi Xu
2024-06-16 22:34:55 -10:00
committed by GitHub
parent 8e1b7a084a
commit a6375d4101

View File

@@ -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)