Skip to content

Latest commit

 

History

History

distribution_shift

Evalutating Distribution Shifts

Code Base Information: DomainBed

Our code is based on the DomainBed, a PyTorch suite containing benchmark datasets and algorithms for domain generalization, as introduced in In Search of Lost Domain Generalization.

License

This DomainBed is released under the MIT license.

Usage

please read main_generalization.py

Available algorithms

The currently available algorithms are:

The implementations use ResNet50 / ResNet18 networks (He et al., 2015)

Example Commands:

clear && CUDA_VISIBLE_DEVICES=3 python main_generalization.py --num-domains 2 --algorithm ERM 

clear && CUDA_VISIBLE_DEVICES=4 python main_generalization.py --num-domains 2 --algorithm GroupDRO 

clear && CUDA_VISIBLE_DEVICES=5 python main_generalization.py --num-domains 2 --algorithm IRM 

clear && CUDA_VISIBLE_DEVICES=6 python main_generalization.py --num-domains 2 --algorithm CORAL 

clear && CUDA_VISIBLE_DEVICES=7 python main_generalization.py --num-domains 2 --algorithm CDANN