Skip to content

Commit 511c7a4

Browse files
committed
up
1 parent 1579a83 commit 511c7a4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs_sd_xl.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,7 @@ def upcast_vae(self):
689689
self.vae.to(dtype=torch.float32)
690690
use_torch_2_0_or_xformers = isinstance(
691691
self.vae.decoder.mid_block.attentions[0].processor,
692-
(
693-
AttnProcessor2_0,
694-
XFormersAttnProcessor,
695-
),
692+
(AttnProcessor2_0, XFormersAttnProcessor),
696693
)
697694
# if xformers or torch_2_0 is used attention block does not need
698695
# to be in float32 which can save lots of memory

0 commit comments

Comments
 (0)