mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-01 23:40:05 +08:00
Merge 7e5db0866ff39f06193da77bc7aa0814db89064b into 09dc24c8a982776abd5cb2f71e3d041139e1d5b2
This commit is contained in:
commit
08c28cca03
@ -99,10 +99,10 @@ class ControlNet(nn.Module):
|
||||
super().__init__()
|
||||
assert use_spatial_transformer == True, "use_spatial_transformer has to be true"
|
||||
if use_spatial_transformer:
|
||||
assert context_dim is not None, 'Fool!! You forgot to include the dimension of your cross-attention conditioning...'
|
||||
assert context_dim is not None,
|
||||
|
||||
if context_dim is not None:
|
||||
assert use_spatial_transformer, 'Fool!! You forgot to use the spatial transformer for your cross-attention conditioning...'
|
||||
assert use_spatial_transformer,
|
||||
# from omegaconf.listconfig import ListConfig
|
||||
# if type(context_dim) == ListConfig:
|
||||
# context_dim = list(context_dim)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user