ZhangXu0963 / NPC

The code of the paper "Negative Pre-aware for Noisy Cross-modal Matching" in AAAI 2024.
16 stars 2 forks source link

f30k evaluation #3

Closed abueidvchow closed 5 months ago

abueidvchow commented 5 months ago

Hello, I encountered a problem when using the F30K dataset for evaluation, as shown in the figure below. I want to know how to solve it.Thank you! 图片

ZhangXu0963 commented 5 months ago

Maybe you can follow steps below to find the root cause of the error.

  1. You can check the parameters ‘--dataset_root’ and ’--dataset‘ in 'params.py' to make sure the test dataset is correct.
  2. You can check the 'test_length' in 'line67, main_NPC.py', it should be 5000 (as shown in the fig below). 屏幕截图 2024-04-19 154316
  3. You can check the shape of 'label' and 'i2t_rank_matrix' in 'line 112, eval.py', they should all be '[1000, 5000]' (as shown below) 屏幕截图 2024-04-19 154329