Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

It's actually possible to torch.compile the unet now.

comfyanonymous9ba440995a41
diff --git a/comfy/ldm/modules/attention.py b/comfy/ldm/modules/attention.py
index 2284bcbdb..1379b7704 100644
--- a/comfy/ldm/modules/attention.py
+++ b/comfy/ldm/modules/attention.py
@@ -36,7 +36,7 @@ def uniq(arr):
def default(val, d):
if exists(val):
return val
- return d() if isfunction(d) else d
+ return d
def max_neg_value(t):