@@ -106,9 +106,9 @@ def description(self):
106106
107107# before_denoise: all task (text2img, img2img) 
108108class  FluxAutoBeforeDenoiseStep (AutoPipelineBlocks ):
109-     block_classes  =  [FluxBeforeDenoiseStep ,  FluxImg2ImgBeforeDenoiseStep ]
110-     block_names  =  ["text2image " , "img2img " ]
111-     block_trigger_inputs  =  [None ,  "image_latents" ]
109+     block_classes  =  [FluxImg2ImgBeforeDenoiseStep ,  FluxBeforeDenoiseStep ]
110+     block_names  =  ["img2img " , "text2image " ]
111+     block_trigger_inputs  =  ["image_latents" ,  None ]
112112
113113    @property  
114114    def  description (self ):
@@ -177,16 +177,32 @@ def description(self):
177177        return  "Decode step that decode the denoised latents into image outputs.\n  - `FluxDecodeStep`" 
178178
179179
180- # text2image, img2img 
180+ class  FluxCoreDenoiseStep (SequentialPipelineBlocks ):
181+     block_classes  =  [FluxInputStep , FluxAutoBeforeDenoiseStep , FluxAutoDenoiseStep ]
182+     block_names  =  ["input" , "before_denoise" , "denoise" ]
183+ 
184+     @property  
185+     def  description (self ):
186+         return  (
187+             "Core step that performs the denoising process. \n " 
188+             +  " - `FluxInputStep` (input) standardizes the inputs for the denoising step.\n " 
189+             +  " - `FluxAutoBeforeDenoiseStep` (before_denoise) prepares the inputs for the denoising step.\n " 
190+             +  " - `FluxAutoDenoiseStep` (denoise) iteratively denoises the latents.\n " 
191+             +  "This step support text-to-image and image-to-image tasks for Flux:\n " 
192+             +  " - for image-to-image generation, you need to provide `image_latents`\n " 
193+             +  " - for text-to-image generation, all you need to provide is prompt embeddings" 
194+         )
195+ 
196+ 
197+ # text2image 
181198class  FluxAutoBlocks (SequentialPipelineBlocks ):
182199    block_classes  =  [
183200        FluxTextEncoderStep ,
184201        FluxAutoVaeEncoderStep ,
185-         FluxAutoBeforeDenoiseStep ,
186-         FluxAutoDenoiseStep ,
202+         FluxCoreDenoiseStep ,
187203        FluxAutoDecodeStep ,
188204    ]
189-     block_names  =  ["text_encoder" , "image_encoder" , "before_denoise"  ,  " denoise""decoder " ]
205+     block_names  =  ["text_encoder" , "image_encoder" , "denoise" , "decode " ]
190206
191207    @property  
192208    def  description (self ):
@@ -243,8 +259,7 @@ def description(self):
243259    [
244260        ("text_encoder" , FluxTextEncoderStep ),
245261        ("image_encoder" , FluxAutoVaeEncoderStep ),
246-         ("before_denoise" , FluxAutoBeforeDenoiseStep ),
247-         ("denoise" , FluxAutoDenoiseStep ),
262+         ("denoise" , FluxCoreDenoiseStep ),
248263        ("decode" , FluxAutoDecodeStep ),
249264    ]
250265)
0 commit comments