We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
not
1 parent e4559f4 commit 7a91ea6Copy full SHA for 7a91ea6
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py
@@ -760,7 +760,7 @@ def __call__(
760
761
# if xformers or torch_2_0 is used attention block does not need
762
# to be in float32 which can save lots of memory
763
- if not use_torch_2_0_or_xformers:
+ if use_torch_2_0_or_xformers:
764
self.vae.post_quant_conv.to(latents.dtype)
765
self.vae.decoder.conv_in.to(latents.dtype)
766
self.vae.decoder.mid_block.to(latents.dtype)
0 commit comments