-
Notifications
You must be signed in to change notification settings - Fork 12
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
训练好的模型 #1
Comments
您好,如果您是需要预训练模型,可以在SOLIDER上下载,用SOLIDER-REID的训练命令直接训练即可得到finetune后的ReID模型。如果您希望直接使用训练好的ReID模型,我们争取近期更新一版,把模型放上去。 |
好的,非常感谢! |
您好,训练好的ReID模型链接我们已经更新到Readme中了,欢迎试用。 |
用训练好的模型提取特征,相同的人和不同的人相似度都很高 |
可以用runtest.sh确认下效果。 |
`import torch def read_image(img_path): @torch.no_grad() val_transforms = T.Compose([ if device: model.eval() img1 = read_image("test_imgs/p5.jpg") @cwhgn 这是我参考test.py写的代码,能帮忙看看问题在哪儿吗?图片之前相似度高达0.9+ ` |
模型用的官方提供的swin_small_msmt17.pth |
目前看我暂时也没找到您代码的问题。几点建议哈:1)可以先check下swin_small_msmt17.pth载入是否成功;2)分步check下图片特征和提供的test.py的输出是否一致;3)如果和test.py一致,则有没有可能两者相似度就是很高。 |
1)模型载入成功 |
针对3,我理解是因为训练时采用的是欧式距离,见 SOLIDER-REID/loss/triplet_loss.py Line 124 in c35c076
如果你希望余弦距离可分的话,可以尝试用余弦距离进行训练。 |
明白了,谢谢 |
A silly newbee question. this p5 and p7 image is person cropped image. What should be the dimesion of the image ? is 384 x 192 ? Is there any newbee document to make inference and compare distance of two detected person image bow. Detected person could be from yolo or from solider Best |
您好,请问方便分享一些训练好的模型吗?我想先测试一下效果,非常感谢!
The text was updated successfully, but these errors were encountered: