Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/diffusers/models/transformers/transformer_flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def __call__(
ip_hidden_states: list[torch.Tensor] | None = None,
ip_adapter_masks: torch.Tensor | None = None,
) -> torch.Tensor:
if ip_adapter_masks is not None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just remove this

logger.warning_once(
"`ip_adapter_masks` is not supported by the Flux IP-Adapter and will be ignored."
)
batch_size = hidden_states.shape[0]

query, key, value, encoder_query, encoder_key, encoder_value = _get_qkv_projections(
Expand Down
Loading