1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Remove remaining not in upscale pipeline (#4020)

Remove remaining `not` in upscale pipeline.
This commit is contained in:
Pedro Cuenca
2023-07-10 12:37:50 +02:00
committed by GitHub
parent e4559f48c1
commit 7a91ea6c2b

View File

@@ -760,7 +760,7 @@ class StableDiffusionUpscalePipeline(DiffusionPipeline, TextualInversionLoaderMi
# if xformers or torch_2_0 is used attention block does not need
# to be in float32 which can save lots of memory
if not use_torch_2_0_or_xformers:
if use_torch_2_0_or_xformers:
self.vae.post_quant_conv.to(latents.dtype)
self.vae.decoder.conv_in.to(latents.dtype)
self.vae.decoder.mid_block.to(latents.dtype)