-
Notifications
You must be signed in to change notification settings - Fork 41
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
关于参与计算loss_soft的特征 #7
Comments
|
|
另外,如果你在reID上做实验的话,其实我建议在一个reID的codebase上加上这个region的loss. 因为这个code针对的是街景图,无论是图像预处理,还是training scheme都跟reID上最适合的不一样. netvlad也不一定在reID上能收敛的好. |
好的,感谢。我做局部特征的检索,我试验下直接用区域-区域之间是否可以通过这种无监督方式来做。netVLAD刚好也可以用提局部特征。 |
还想请教下,sync_gather的两种模式,内存和显存占用有大概统计下极限吗? True的时候11G显存超,False的时候128GB内存超。query+gallery大概5w多张样本。 |
超内存和超显存的代码位置应该不一样. 为false的时候哪句话超的内存? |
True: dist.all_gather(all_features, features)显存超 |
bc_features = torch.cat(features).cuda(gpu)
for k in range(world_size):
bc_features.data.copy_(torch.cat(features))
dist.broadcast(bt_features,k) True显存超可能没法解决,False内存超这里有点疑问? |
这里features太多的时候确实可能超,应该是代码上有缺陷. |
OpenIBL/ibl/trainers.py
Line 257 in 5ab80d6
这里为什么只是取区域特征相似度得分图的sim_diff_label[:,:,0]第一行来计算loss?参与计算的只有[B,diff_pos_num,9]。
OpenIBL/ibl/evaluators.py
Line 94 in 5ab80d6
另外图片太多内存会爆,所以只取了1万类,query每类1张,gallery每类4张,是否需要把pos_num=4,neg_num=10?
The text was updated successfully, but these errors were encountered: