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

我用Trained Models and logs (Size 256) 下面表格中的模型进行评估测试,报错KeyError: 'base.cls_token' #87

Open
mozeqiu123 opened this issue Jul 26, 2024 · 2 comments

Comments

@mozeqiu123
Copy link

请问这是什么原因呢。我看了表格中模型对应的log,模型名字和下载的不一样,是否是这个原因。我看了log里面的配置文件信息,和我加载yml一样,除了模型名字。

@ming132
Copy link

ming132 commented Oct 5, 2024

我也遇到了这个问题,veri的TransReID用下载的模型跑出来效果也很差,不知道什么情况

@KingH12138
Copy link

First, you need to consider the prefix of param-key;
Second, make sure you use the right checkpoint because there are two checkpoint param in .yml;
Last, I guess you had ignored a param in .yml callied "STRIDE_SIZE: [16, 16]". Accordingly, It should be [12, 12] when you apply author's checkpoints. If you deal with point 1,2 this my comment, the mismatch of pos_embedding's size will bother you and you can deal with it by change param STRIDE_SIZE in .yml.

Tips: do not forget to change code of dataset class if you need to have a new logic to load your msmt17 and other dataset.

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