The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Order of operations matters.
comfyanonymous5942c17d5558
diff --git a/comfy/ldm/flux/layers.py b/comfy/ldm/flux/layers.pyindex a7b0c55fa..da0cf61b1 100644--- a/comfy/ldm/flux/layers.py+++ b/comfy/ldm/flux/layers.py@@ -170,8 +170,8 @@ class DoubleStreamBlock(nn.Module):txt_attn, img_attn = attn[:, : txt.shape[1]], attn[:, txt.shape[1] :]# calculate the img bloks- img += img_mod1.gate * self.img_attn.proj(img_attn)- img += img_mod2.gate * self.img_mlp((1 + img_mod2.scale) * self.img_norm2(img) + img_mod2.shift)+ img = img + img_mod1.gate * self.img_attn.proj(img_attn)+ img = img + img_mod2.gate * self.img_mlp((1 + img_mod2.scale) * self.img_norm2(img) + img_mod2.shift)# calculate the txt blokstxt += txt_mod1.gate * self.txt_attn.proj(txt_attn)