Skip to content

Can you check the code about stage : python main.py --dataset paco_lvis_v1_test --batch_size 4 #8

@yangt1013

Description

@yangt1013

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions