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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user