ComfyUI_Patches_ll
ComfyUI_Patches_ll copied to clipboard
Fix Flux Kontext ReferenceLatent and ControlNet shape mismatch
Summary
Allows to use Flux ControlNet with Flux Kontext ReferenceLatent
Description
Currently there's a shape mismatch in the forward_orig method due to conditioning concatentation for Flux Kontext.
Sources
Error
Kontext conditioning concat
This PR introduces a fix that pads img with zeroes along the 1st dim to match the shape.
This change is local but potentially can cause issues if the input shapes mismatch due to different reason than kontext conditioing, e.g. due to some errors.
Example workflow to reproduce behaviour
FLUX_KONTEXT_REFERENCE_PR.json