Skip to content

Commit

Permalink
fix one uncaught deprecation warning for accessing vae_latent_channel…
Browse files Browse the repository at this point in the history
…s in VaeImagePreprocessor (#9372)

deprecation warning vae_latent_channels
  • Loading branch information
haruishi43 authored Sep 5, 2024
1 parent 55ac421 commit 5249a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/image_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def preprocess(

channel = image.shape[1]
# don't need any preprocess if the image is latents
if channel == self.vae_latent_channels:
if channel == self.config.vae_latent_channels:
return image

height, width = self.get_default_height_width(image, height, width)
Expand Down

0 comments on commit 5249a26

Please sign in to comment.