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 (#10841)
Haomingc38e7d6599be
diff --git a/comfy/ldm/flux/model.py b/comfy/ldm/flux/model.pyindex 1a24e6d95..d5674dea6 100644--- a/comfy/ldm/flux/model.py+++ b/comfy/ldm/flux/model.py@@ -171,7 +171,10 @@ class Flux(nn.Module):pe = Noneblocks_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 ("double_block", i) in blocks_replace:def block_wrap(args):out = {}@@ -215,7 +218,10 @@ class Flux(nn.Module):if self.params.global_modulation:vec, _ = self.single_stream_modulation(vec_orig)+ 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 ("single_block", i) in blocks_replace:def block_wrap(args):out = {}