The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Remove useless code.
comfyanonymousc86cd585731a
diff --git a/comfy/ldm/pixart/blocks.py b/comfy/ldm/pixart/blocks.pyindex f60bfd797..48b27008c 100644--- a/comfy/ldm/pixart/blocks.py+++ b/comfy/ldm/pixart/blocks.py@@ -147,7 +147,6 @@ class AttentionKVCompress(nn.Module):qkv = self.qkv(x).reshape(B, N, 3, C)q, k, v = qkv.unbind(2)- dtype = q.dtypeq = self.q_norm(q)k = self.k_norm(k)@@ -209,7 +208,6 @@ class T2IFinalLayer(nn.Module):self.out_channels = out_channelsdef forward(self, x, t):- dtype = x.dtypeshift, scale = (self.scale_shift_table[None].to(dtype=x.dtype, device=x.device) + t[:, None]).chunk(2, dim=1)x = t2i_modulate(self.norm_final(x), shift, scale)x = self.linear(x)