You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, authors, Thanks a lot for sharing the code. This work is helpful for me. I met some problems when runned the testing stage. If happened this problem, how to solve this probelm.
│ 230 │ │ # if there are no possible hardnegative for this object, we remove it from the l │
│ 231 │ │ has_attributes[object_to_hn] = possible_hn != [[],[],[],[]] │
│ 232 │ │
│ ❱ 233 │ assert len(hardnegative_captions) > 0, "zero hardnegatives generated, the caption is │
│ 234 │ return positive_caption, hardnegative_captions │
│ 235 │
│ 236 def create_hardnegatives(objects, n_hardnegatives): │
AssertionError: zero hardnegatives generated, the caption is A
The text was updated successfully, but these errors were encountered:
yangt1013
changed the title
Please Check the code about evaluation, there are some issues.
Can you check the code about stage : python main.py --dataset paco_lvis_v1_test --batch_size 4
Sep 29, 2024
Hi, authors, Thanks a lot for sharing the code. This work is helpful for me. I met some problems when runned the testing stage. If happened this problem, how to solve this probelm.
│ 230 │ │ # if there are no possible hardnegative for this object, we remove it from the l │
│ 231 │ │ has_attributes[object_to_hn] = possible_hn != [[],[],[],[]] │
│ 232 │ │
│ ❱ 233 │ assert len(hardnegative_captions) > 0, "zero hardnegatives generated, the caption is │
│ 234 │ return positive_caption, hardnegative_captions │
│ 235 │
│ 236 def create_hardnegatives(objects, n_hardnegatives): │
AssertionError: zero hardnegatives generated, the caption is A
The text was updated successfully, but these errors were encountered: