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 some useless code.
comfyanonymousaff16532d450
diff --git a/comfy/ldm/modules/attention.py b/comfy/ldm/modules/attention.pyindex 975faa21f..24fb9d950 100644--- a/comfy/ldm/modules/attention.py+++ b/comfy/ldm/modules/attention.py@@ -41,27 +41,12 @@ def exists(val):return val is not None-def uniq(arr):- return{el: True for el in arr}.keys()--def default(val, d):if exists(val):return valreturn d-def max_neg_value(t):- return -torch.finfo(t.dtype).max---def init_(tensor):- dim = tensor.shape[-1]- std = 1 / math.sqrt(dim)- tensor.uniform_(-std, std)- return tensor--# feedforwardclass GEGLU(nn.Module):def __init__(self, dim_in, dim_out, dtype=None, device=None, operations=ops):