Skip to content

Commit

Permalink
fix:grounding_pretrain_text_trans_negative_label (#11404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baboom-l committed Feb 1, 2024
1 parent 498295a commit 892e8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/datasets/transforms/text_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def od_aug(self, results):

for i in np.random.choice(
valid_negative_indexes, size=num_negatives, replace=False):
if i not in positive_label_list:
if int(i) not in positive_label_list:
negative_label_list.add(i)

random.shuffle(positive_label_list)
Expand Down

0 comments on commit 892e8ec

Please sign in to comment.