1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add strength control for vace. (#7717)

This commit is contained in:
comfyanonymous
2025-04-21 16:36:20 -07:00
committed by GitHub
parent 9d57b8afd8
commit 5d0d4ee98a
3 changed files with 9 additions and 4 deletions

View File

@@ -1068,6 +1068,9 @@ class WAN21_Vace(WAN21):
mask = torch.ones(noise_shape, device=noise.device, dtype=noise.dtype)
out['vace_context'] = comfy.conds.CONDRegular(torch.cat([vace_frames.to(noise), mask.to(noise)], dim=1))
vace_strength = kwargs.get("vace_strength", 1.0)
out['vace_strength'] = comfy.conds.CONDConstant(vace_strength)
return out