|
|
|
|
|
|
|
|
# Domain-Adaptation |
|
|
# Domain-Adaptation |
|
|
|
|
|
|
|
|
|
|
|
This project contains code for different domain adaptation methods on Office31 dataset. |
|
|
|
|
|
|
|
|
|
|
|
Available methods include: DANN, CDAN, MCD, CORAL, MMD |
|
|
|
|
|
|
|
|
|
|
|
This project can be easily extended to use on other datasets or perform other adaptaion methods. (Check Code Structure to find out where you need to change.) |
|
|
|
|
|
|
|
|
## Prepare Environment |
|
|
## Prepare Environment |
|
|
|
|
|
|
|
|
Install the requirements using conda from `requirements-conda.txt` (or using pip from `requirements.txt`). |
|
|
Install the requirements using conda from `requirements-conda.txt` (or using pip from `requirements.txt`). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- `models.py`: Contains models for adaptation |
|
|
- `models.py`: Contains models for adaptation |
|
|
|
|
|
|
|
|
- `train.py`: Contains base training iteration |
|
|
|
|
|
|
|
|
- `train.py`: Contains base training iteration, dataset is also loaded here |
|
|
|
|
|
|
|
|
- `classifier_adapter.py`: Contains ClassifierAdapter class which is used for training a source-only model without adaptation |
|
|
- `classifier_adapter.py`: Contains ClassifierAdapter class which is used for training a source-only model without adaptation |
|
|
|
|
|
|