Skip to content

JinYujie99/aidgn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

AIDGN

PyTorch Implementation for "Domain Generalization Through the Lens of Angular Invariance" (Our code is mainly based on DomainBed, Ishaan and David, 2021 library.)

Usage

  1. Obtain dataset The datasets used in our experiments can be downloaded from the following links:
  1. Train the model
python3 -m domainbed.scripts.train\
       --data_dir=./domainbed/data/OfficeHome/\
       --algorithm AIDGN\
       --dataset OfficeHome\
       --test_env 2

or launch a sweep

python -m domainbed.scripts.sweep launch\
       --data_dir=/my/datasets/path\
       --output_dir=/my/sweep/output/path\
       --command_launcher MyLauncher\
       --algorithms AIDGN\
       --datasets OfficeHome\
       --n_hparams 20\
       --n_trials 3 
  1. To view the results of your sweep:
python -m domainbed.scripts.collect_results\
       --input_dir=/my/sweep/output/path

Requirements

  • Python 3.7.9
  • PyTorch 1.7.1
  • torchvision 0.8.2
  • Numpy 1.19.4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages