This is an official implementation of ADRMX: Additive Disentanglement of Domain Features with Remix Loss. In this repository, we provide the codes for required DomainBed extensions to reproduce our results.
- Clone the DomainBed repository: DomainBed
- Download the datasets and adjust the paths
- Clone this repository to update the files
algorithms.py
,hparams_registry.py
and addutils.py
under domainbed directory
-
Conda (Recommended):
conda create -n ADRMX conda activate ADRMX
-
Pip
pip install -r requirements.txt
-
Example Training Command:
cd PROJECT_PATH python -m domainbed.scripts.train --data_dir=./domainbed/data/ --algorithm ADRMX --dataset PACS
@article{demirel2023adrmx,
title={ADRMX: Additive Disentanglement of Domain Features with Remix Loss},
author={Demirel, Berker, Aptoula, Erchan and Ozkan, Huseyin},
journal={arXiv preprint arXiv:2308.06624},
year={2023}
}