Source Code and for the Neurocomputing ESANN 2021 Special Issue 'Domain Adversarial Tangent Subspace Alignment for Explainable Domain Adaptation'
Contact: christophraab@outlook.de
If you got problems with this implementation, feel free to write me an email.
- Download the datasets with the links below.
- Run
pip install -e .
to install the DATL package.
For a simple training-evaluation demo run with preset parameters, you can use the following commands for training on Office-31 A->W
Train network via
cd datl && python train_datl.py --source_dir Office-31/images/amazon/ --target_dir Office-31/images/webcam
Note that source_dir and target_dir must be replaced with your dataset locations.
- The script trains datl on amazon vs webcam given the specified image folder paths.
- See the Args-Parser parameter description in the file for the documentation of the parameters.
- The best model is stored in
models/
.
For the explainability results on Office-31 A->W do:
- Replace dataset paths in line 11 and 12 in
study.py
. cd datl && python explainability.py --source amazon --target webcam
- The Siamese Translations (STs) are stored in
results
- T-Sne plots of STs and features are stored in
plots
For the explainability results on Office-31 do:
- Replace dataset paths in line 11 and 12 in
study.py
. cd datl && python study.py --dset office
- Results are stored as csv file
results/
Office-31 dataset can be found here.
Image-Clef dataset can be found here.