-
Notifications
You must be signed in to change notification settings - Fork 178
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
The size of tensor a (6) must match the size of tensor b (160) at non-singleton dimension 0 #70
Comments
The possible reason is that the size of position embedding or side embedding does not match, you can print |
Hi, |
Hi @heshuting555 , Seem the size dimension changes when use other dataset based on Thank you |
Hi @heshuting555, Is there any update on this issue? I am trying to load the model trained on VeRi dataset and test on MarketPlace dataset! Has the same requirement as @ledinhtri97 Any help is super appreciated! |
Have you solved it? I have encountered the same problem as well. Any help is appreciated! |
Hi, I am trying to run the pretrained vit_transreid_veri.pth weights directly for testing purposes. In the vit_transreid.yml, I tried with MODEL.PRETRAIN_CHOICE as both imagenet and self with models "jx_vit_base_p16_224-80ecf9dd.pth" and "vit_transreid_veri.pth" but still getting the same error during test weights loading phase.
===========building transformer with JPM module ===========
Traceback (most recent call last):
File "test.py", line 48, in
model.load_param(cfg.TEST.WEIGHT)
File "/app/model/make_model.py", line 376, in load_param
self.state_dict()[i.replace('module.', '')].copy_(param_dict[i])
RuntimeError: The size of tensor a (6) must match the size of tensor b (160) at non-singleton dimension 0
The text was updated successfully, but these errors were encountered: