From 9af6320ec9d288856f505153ed03df7dfcd39dce Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 2 Mar 2025 08:19:16 -0500 Subject: [PATCH] Make 2d area composition nodes work on video models. --- comfy/samplers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comfy/samplers.py b/comfy/samplers.py index a1b4787e..076c9879 100644 --- a/comfy/samplers.py +++ b/comfy/samplers.py @@ -34,6 +34,9 @@ def get_area_and_mult(conds, x_in, timestep_in): return None if 'area' in conds: area = list(conds['area']) + while (len(area) // 2) < len(dims): + area = [2147483648] + area[:len(area) // 2] + [0] + area[len(area) // 2:] + if 'strength' in conds: strength = conds['strength']