-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When I replace the dataset name of D-resnet.yml to 'msmt17'. error happened.
loss_dict['loss_triplet_add'] = triplet_loss( File "/home/share/chengzhi/PROGRAM/ACM/MetaBIN-master/./fastreid/modeling/losses/triplet_loss.py", line 162, in triplet_loss dist_ap, dist_an = hard_example_mining(dist_mat, is_pos, is_neg) File "/home/share/chengzhi/PROGRAM/ACM/MetaBIN-master/./fastreid/modeling/losses/triplet_loss.py", line 64, in hard_example_mining dist_an.append(torch.min(dist_mat[i][is_neg[i]])) RuntimeError: operation does not have an identity.
It is because that is_neg[I] are all False. Should I change something?
Metadata
Metadata
Assignees
Labels
No labels