-
-
Notifications
You must be signed in to change notification settings - Fork 997
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
SwinV2在MSMT17测试集的问题 #367
Comments
Hello. It seems like the input size. |
但是我在market数据集用Resnet-50、Densennet以及Swin Transformer V2均可以正常运行,在MSMT17数据集上Resnet-50和Densenet均可以正常运行,是两个数据集之间的差异吗? |
@lianshengzhou |
Thank you @chesianatalia I will try it and return to you soon. |
Thank you @chesianatalia @lianshengzhou I found why. It is due to torch.jit.trace But I am also curious why torch.jit can work with Market but MSMT. It is interesting. |
Just for your reference. |
@layumi @chesianatalia 试了一下,能够成功运行,结果也很好,感谢及时回复和帮助。 |
Thank you for your explanation, i'll working on it |
Hi @layumi i've already comment out two lines as you mentioned earlier, turns out there are new error comes up. I've never see an error like this before, and when i undo what i did, the error is still the same, and now it affect on my other model (not only SwinV2). Kindly need your advice the screenshot attached below: here are the full error: File "/content/drive/MyDrive/ChesiaGraceNatalia-TA/Person_reID_baseline_pytorch/test.py", line 279, in |
|
@layumi Hi, I think you are right, I checked another issue, it was due to timm version, I downgraded it, and suddenly it worked, Thank you very much for your suggestion. |
Thank you @chesianatalia Yes. BTW, old timm like 0.6. 0.7 may be not a stable SwinV2. For the latest timm, you also need python >=3.8, otherwise you may meet some ``typing'' error. |
您好,想问一下为什么用swinV2在MSMT17测试的时候出现BUG:
RuntimeError: The size of tensor a (4) must match the size of tensor b (32) at non-singleton dimension 1
发现是在这一步出现问题:Traceback (most recent call last):
File "/content/Person_reID_baseline_pytorch/test.py", line 316, in
gallery_feature = extract_feature(model,dataloaders['gallery'])
File "/content/Person_reID_baseline_pytorch/test.py", line 207, in extract_feature
outputs = model(input_img)
为什么在Market-1501数据集上不会出现这种BUG呢?
The text was updated successfully, but these errors were encountered: