From d6bbe8c40f28446738cd2687a9a13310a3189f1a Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 22 Jan 2025 17:04:30 -0500 Subject: [PATCH] Remove support for python 3.8. --- comfy/conds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy/conds.py b/comfy/conds.py index 660690af..73be3b1e 100644 --- a/comfy/conds.py +++ b/comfy/conds.py @@ -46,7 +46,7 @@ class CONDCrossAttn(CONDRegular): if s1[0] != s2[0] or s1[2] != s2[2]: #these 2 cases should not happen return False - mult_min = lcm(s1[1], s2[1]) + mult_min = math.lcm(s1[1], s2[1]) diff = mult_min // min(s1[1], s2[1]) if diff > 4: #arbitrary limit on the padding because it's probably going to impact performance negatively if it's too much return False @@ -57,7 +57,7 @@ class CONDCrossAttn(CONDRegular): crossattn_max_len = self.cond.shape[1] for x in others: c = x.cond - crossattn_max_len = lcm(crossattn_max_len, c.shape[1]) + crossattn_max_len = math.lcm(crossattn_max_len, c.shape[1]) conds.append(c) out = []