Skip to content

Conversation

fAIseh00d
Copy link

@fAIseh00d fAIseh00d commented Aug 5, 2025

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 image Kontext conditioning concat image

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

workflow(361)

Links

ComfUI Patches II Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant