Skip to content

Commit 5249a26

Browse files
authored
fix one uncaught deprecation warning for accessing vae_latent_channels in VaeImagePreprocessor (#9372)
deprecation warning vae_latent_channels
1 parent 55ac421 commit 5249a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/image_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def preprocess(
569569

570570
channel = image.shape[1]
571571
# don't need any preprocess if the image is latents
572-
if channel == self.vae_latent_channels:
572+
if channel == self.config.vae_latent_channels:
573573
return image
574574

575575
height, width = self.get_default_height_width(image, height, width)

0 commit comments

Comments
 (0)