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.

Indentation.

comfyanonymousd31df04c8aa8
diff --git a/comfy/ldm/flux/model.py b/comfy/ldm/flux/model.py
index eb7767ca9..63970cad2 100644
--- a/comfy/ldm/flux/model.py
+++ b/comfy/ldm/flux/model.py
@@ -115,14 +115,14 @@ class Flux(nn.Module):
pe = self.pe_embedder(ids)
for i, block in enumerate(self.double_blocks):
- img, txt = block(img=img, txt=txt, vec=vec, pe=pe)
-
- if control is not None: # Controlnet
- control_i = control.get("input")
- if i < len(control_i):
- add = control_i[i]
- if add is not None:
- img += add
+ img, txt = block(img=img, txt=txt, vec=vec, pe=pe)
+
+ if control is not None: # Controlnet
+ control_i = control.get("input")
+ if i < len(control_i):
+ add = control_i[i]
+ if add is not None:
+ img += add
img = torch.cat((txt, img), 1)