From dfa2b6d129a5f81f4b1920e47e66329966c620d6 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 23 Jan 2025 05:54:09 -0500 Subject: [PATCH 1/2] Remove unused function lcm in conds.py (#6572) --- comfy/conds.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/comfy/conds.py b/comfy/conds.py index 73be3b1e0..211fb8d57 100644 --- a/comfy/conds.py +++ b/comfy/conds.py @@ -3,9 +3,6 @@ import math import comfy.utils -def lcm(a, b): #TODO: eventually replace by math.lcm (added in python3.9) - return abs(a*b) // math.gcd(a, b) - class CONDRegular: def __init__(self, cond): self.cond = cond From 96e2a45193cc74cb8dbc39c717619ace7c848018 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 23 Jan 2025 05:56:23 -0500 Subject: [PATCH 2/2] Remove useless code. --- comfy/ldm/modules/diffusionmodules/model.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/comfy/ldm/modules/diffusionmodules/model.py b/comfy/ldm/modules/diffusionmodules/model.py index 303147a98..3bf83a7e2 100644 --- a/comfy/ldm/modules/diffusionmodules/model.py +++ b/comfy/ldm/modules/diffusionmodules/model.py @@ -702,9 +702,6 @@ class Decoder(nn.Module): padding=1) def forward(self, z, **kwargs): - #assert z.shape[1:] == self.z_shape[1:] - self.last_z_shape = z.shape - # timestep embedding temb = None