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

position embedding reshape error #10

Open
GaoXiaoshan opened this issue Apr 8, 2024 · 2 comments
Open

position embedding reshape error #10

GaoXiaoshan opened this issue Apr 8, 2024 · 2 comments

Comments

@GaoXiaoshan
Copy link

Thank you for your excellent work.
When do the pretrain, there has the following error

File xxxx, line 59, in get_position_embedding
position_embedding = position_embedding[1:, :].reshape((PATCH_NUM_WIDTH, PATCH_NUM_HEIGHT, POSITION_EMBEDDING_LENGTH)).unsqueeze(0).unsqueeze(0)
RuntimeError: shape '[24, 24, 1024]' is invalid for input of size 262144

@xrorrim
Copy link
Collaborator

xrorrim commented Apr 14, 2024

We haven't encountered this issue. Could you please provide a more detailed description of the problem?

@lucasjinreal
Copy link

Actually all uses are getting same error..

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

No branches or pull requests

3 participants