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