mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-06-13 21:01:06 +08:00
Backend: Allow control signal to be none for advanced weighting
This commit is contained in:
parent
c3a66b016b
commit
ef781cabcb
@ -64,6 +64,10 @@ def compute_controlnet_weighting(control, cnet):
|
||||
for k, v in control.items():
|
||||
for i in range(len(v)):
|
||||
control_signal = control[k][i]
|
||||
|
||||
if not isinstance(control_signal, torch.Tensor):
|
||||
continue
|
||||
|
||||
B, C, H, W = control_signal.shape
|
||||
|
||||
positive_weight = 1.0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user