Skip to content

Commit daaf0bd

Browse files
committed
nit
1 parent aaee30d commit daaf0bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib_layerdiffusion/attention_sharing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def unload_model_clones(model, unload_weights_only=True, force_unload=True):
346346
unload_weight = True
347347

348348
if not force_unload:
349-
if unload_weights_only and unload_weight == False:
349+
if unload_weights_only and unload_weight is False:
350350
return None
351351
else:
352352
unload_weight = True
@@ -356,6 +356,7 @@ def unload_model_clones(model, unload_weights_only=True, force_unload=True):
356356

357357
return unload_weight
358358

359+
359360
class AttentionSharingPatcher(torch.nn.Module):
360361
def __init__(self, unet, frames=2, use_control=True, rank=256):
361362
super().__init__()

0 commit comments

Comments
 (0)