Skip to content

Conversation

@asfiyab-nvidia
Copy link
Contributor

@asfiyab-nvidia asfiyab-nvidia commented Sep 10, 2024

What does this PR do?

The Squeeze operation performed in FluxPosEmbed is a no op after the change to make txt_ids and img_ids into 2D tensors was committed. Can we remove the Squeeze op used this case? This class is currently only used in transformer_flux.py and controlnet_flux.py and both models accept 2D txt and img ids.

Before submitting

Who can review?

@sayakpaul @yiyixuxu @DN6

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thank you!

@yiyixuxu yiyixuxu merged commit b9e2f88 into huggingface:main Sep 11, 2024
15 checks passed
@asfiyab-nvidia
Copy link
Contributor Author

Hi, which release will this change be included in?

@sayakpaul
Copy link
Member

It will go into the next one :) Stay tuned.

sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
Remove Squeeze op

Signed-off-by: Asfiya Baig <[email protected]>
Co-authored-by: YiYi Xu <[email protected]>
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.

4 participants