Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused upcast_attn flag in convert_original_stable_diffusion_to_diffusers script #1942

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

kn
Copy link
Contributor

@kn kn commented Jan 6, 2023

upcast_attn flag was introduced in this PR https://github.com/huggingface/diffusers/pull/1559/files#diff-575959cae6329573c802ceca78d9a160b9d25948817a9ff37feb37585f819b05R842, however the flag is actually not used.

This PR:

  • fixes it by setting upcast_attention to what's specified by the flag.
  • rename the flag to make it consistent with the rest of the code.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 6, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

I think you are right, the argument was seemingly being ignored when passed in the command line (but it worked for Stable Diffusion v2.1 because it was automatically inferred). Let's wait for @patil-suraj to provide his feedback on this :)

@patrickvonplaten
Copy link
Contributor

Great catch @kn !

@patrickvonplaten patrickvonplaten merged commit 9147c4c into huggingface:main Jan 12, 2023
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.

None yet

4 participants