DDAG icon indicating copy to clipboard operation
DDAG copied to clipboard

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

Open lorenz-liu opened this issue 3 years ago • 0 comments

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.

lorenz-liu avatar Mar 24 '21 09:03 lorenz-liu