The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
block info (#10843)
Haoming3d1fdaf9f448
diff --git a/comfy/ldm/chroma/model.py b/comfy/ldm/chroma/model.pyindex 67bf70eb1..a72f8cc47 100644--- a/comfy/ldm/chroma/model.py+++ b/comfy/ldm/chroma/model.py@@ -179,7 +179,10 @@ class Chroma(nn.Module):pe = self.pe_embedder(ids)blocks_replace = patches_replace.get("dit", {})+ transformer_options["total_blocks"] = len(self.double_blocks)+ transformer_options["block_type"] = "double"for i, block in enumerate(self.double_blocks):+ transformer_options["block_index"] = iif i not in self.skip_mmdit:double_mod = (self.get_modulations(mod_vectors, "double_img", idx=i),@@ -222,7 +225,10 @@ class Chroma(nn.Module):img = torch.cat((txt, img), 1)+ transformer_options["total_blocks"] = len(self.single_blocks)+ transformer_options["block_type"] = "single"for i, block in enumerate(self.single_blocks):+ transformer_options["block_index"] = iif i not in self.skip_dit:single_mod = self.get_modulations(mod_vectors, "single", idx=i)if ("single_block", i) in blocks_replace: