liangchen527 / CausEB

Official implementaion of the pape: "A Causal Inspired Early-Branching Structure for Domain Generalization".
4 stars 0 forks source link

Can you give us the running code? Thank you #1

Open cinnectt opened 4 days ago

cinnectt commented 4 days ago

Can you give us the running code? Thank you

liangchen527 commented 4 days ago

The main implementation is in domainbed.algorithms.CausEB. We follow the experimental setting in DomainBed. You can run the code like: python -m domainbed.scripts.sweep launch \ --data_dir=/my/datasets/path \ --output_dir=/my/sweep/output/path\ --command_launcher MyLauncher\ --algorithms CausEB \ --datasets RotatedMNIST VLCS\ --n_hparams 5\ --n_trials 1