mangye16 / DDAG

Pytorch Code of DDAG for Visible-Infrared Person Re-Identification (ECCV20)
MIT License
71 stars 16 forks source link

Implementating tests with the RegDB dataset seems to have some problems. #7

Open lorenz-liu opened 3 years ago

lorenz-liu commented 3 years ago

When I finished training on the RegDB dataset, I followed the README.md instructions to run this in my terminal:

python test_ddag.py --dataset regdb --trial 1 --wpa --graph --gpu 1 --resume 'regdb_G_P_3_drop_0.2_4_8_lr_0.1_seed_0_trial_1_best.t'

where regdb_G_P_3_drop_0.2_4_8_lr_0.1_seed_0_trial_1_best.t is the model trained by the RegDB dataset.

The error information told me that, query_loader is not defined:

Traceback (most recent call last):
  File "test_ddag.py", line 200, in <module>
    query_feat, query_feat_att = extract_query_feat(query_loader)
NameError: name 'query_loader' is not defined

So, I went through the codes and tryna make some modifications, but the work is more than I expected, as there were dozens of supplements that need to be added directly to the source codes, apart from query_loader. Though I finally managed to run successfully, and the outcomes look reasonable, I am still befuddled by all the extra work I have to get done.

I AM WONDERING if all these modifications are necessary or there actually exists a way to implement tests on RegDB.