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

I ran into a problem when the model imported weights #2

Open
wwweeeeiii opened this issue May 21, 2024 · 1 comment
Open

I ran into a problem when the model imported weights #2

wwweeeeiii opened this issue May 21, 2024 · 1 comment

Comments

@wwweeeeiii
Copy link

Dear Sir, when I reproduced your results, I encountered the problem shown in the image, but I did not know how to solve it, I used the weights file downloaded from the link provided in the readme.
屏幕截图 2024-05-21 143400

@KerrFitzgerald
Copy link
Owner

Hello,

The error is due to a mismatch in the shapes of the model that is being created and the pre-trained model being loaded from the checkpoint.

I cannot see the whole code but I think the problem arises from a different embedding size (potentially due to the pre-trained model link being updated). You could try changing the embed_dim parameter from 128 to 192 to see if this fixes the problem?Also ensure that the other parameters (img_size etc.) are unchanged.

Hope this helps.

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

2 participants