"tests/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "468874c84becb3c607c5bcc4c55ce267acea5a51"
Unverified Commit a6375d41 authored by YiYi Xu's avatar YiYi Xu Committed by GitHub
Browse files

Image processor latent (#8513)



* fix

* up

---------
Co-authored-by: default avataryiyixuxu <yixu310@gmail,com>
parent 8e1b7a08
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment