Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yangt1013 opened this issue Sep 27, 2024 · 0 comments

Comments

@yangt1013
Copy link

yangt1013 commented Sep 27, 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

@yangt1013 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant