From ca94622f3f17db75b2656cbd5eaf3d234a69f813 Mon Sep 17 00:00:00 2001 From: John Slegers Date: Tue, 13 Aug 2024 14:50:35 +0200 Subject: [PATCH] double negative -> positive double negative -> positive --- comfy/cldm/cldm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/cldm/cldm.py b/comfy/cldm/cldm.py index 90ac21c76..763e29eb9 100644 --- a/comfy/cldm/cldm.py +++ b/comfy/cldm/cldm.py @@ -238,7 +238,7 @@ class ControlNet(nn.Module): else: disabled_sa = False - if num_attention_blocks is not None or nr < num_attention_blocks[level]: + if num_attention_blocks is None or nr < num_attention_blocks[level]: layers.append( SpatialTransformer( ch, num_heads, dim_head, depth=num_transformers, context_dim=context_dim,