Skip to content

Fix Flux Kontext ReferenceLatent and ControlNet shape mismatch#16

Open
fAIseh00d wants to merge 2 commits intolldacing:mainfrom
fAIseh00d:main
Open

Fix Flux Kontext ReferenceLatent and ControlNet shape mismatch#16
fAIseh00d wants to merge 2 commits intolldacing:mainfrom
fAIseh00d:main

Conversation

@fAIseh00d
Copy link

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

ComfyUI 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