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

Pretrained model weights cannot be loaded #16

Open
yuxin212 opened this issue Mar 2, 2023 · 1 comment
Open

Pretrained model weights cannot be loaded #16

yuxin212 opened this issue Mar 2, 2023 · 1 comment

Comments

@yuxin212
Copy link

yuxin212 commented Mar 2, 2023

Hi,

The pretrained Torchreid models you provided cannot be loaded.

If you comment out L323 in demo.py, there should be a warning indicating this:

/Multi-Camera-Person-Tracking-and-Re-Identification/torchreid/utils/torchtools.py:299: UserWarning: The pretrained weights 
"model_data/models/model.pth" cannot be loaded, please check the key names manually (** ignored and continue **)

The 2 model weights you provided cannot fit any of the available Torchreid models.

Could you please check and update the Torchreid model weights?
Thanks!

@dranhclub
Copy link

When I used the first provided model weight, I met the same error. The problem was solved when I used the second model weight.
Note that you need to edit the model path in reid.py to 'model_data/models/model.pth.tar-60' if you use the second one.

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