I ran the inference script run_r2r.sh, but did not see any output about the test set.
I checked the code and found that Line257 in r2r/main.py does not process the result output of processing the test set.
if default_gpu:
if 'test' not in env_name:
score_summary, _ = env.eval_metrics(preds)
loss_str = "Env name: %s" % env_name
for metric, val in score_summary.items():
loss_str += ', %s: %.2f' % (metric, val)
write_to_record_file(loss_str+'\n', record_file)
After modifying the if condition, the output of the test set results is abnormal
The code where the problem occurs:
I ran the inference script run_r2r.sh, but did not see any output about the test set. I checked the code and found that Line257 in r2r/main.py does not process the result output of processing the test set.
After modifying the if condition, the output of the test set results is abnormal