facebookresearch / DomainBed

DomainBed is a suite to test domain generalization algorithms
MIT License
1.42k stars 298 forks source link

Mistake in collect_results.py with --single_test_envs sweep option #145

Closed abalhomaid closed 12 months ago

abalhomaid commented 1 year ago

Summary

model_selection.py:90 uses test environment numbers in test_in_acc_key = 'env{}_in_acc'.format(test_env) but if we have two environments: env0 and env1, the error KeyError: 'env3_in_acc' is produced.

Replication steps

Hence the error KeyError: 'env3_in_acc' is produced.

abalhomaid commented 12 months ago

The mistake is on my side, I specified 4 environments under datasets.py while I trained on two. Closing the issue