Skip to content

Conversation

@Helw150
Copy link
Contributor

@Helw150 Helw150 commented Dec 21, 2022

I believe this variable was meant to represent the Width of a continuous input, but was typo'd throughout this file as "Weight". This leads to some confusion as it's not clear what a weight dimension would represent in an original 2D input.

Additionally, you can see from the docstring that the original author intended this to be width!

hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`.
                When continous, `torch.FloatTensor` of shape `(batch size, channel, height, width)`)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 21, 2022

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.

Makes sense to me!

Copy link
Contributor

@patil-suraj patil-suraj left a comment

Choose a reason for hiding this comment

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

Looks good, thanks a lot !

@patil-suraj patil-suraj merged commit 8a4c3e5 into huggingface:main Dec 27, 2022
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* Width was typod as weight

* Run Black
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