Domain Adaptation for Remote Sensing in Scene Classification: An Investigation into Adaptive Dropout and Adaptive Batch Normalization Techniques
This repository contains code for domain adaptation experiments with the focus on adapting between AID (Aerial Image Dataset) and UCM (UC Merced Land Use Dataset).
The project's full report, containing the research methods, datasets used, and results can be found in AdaptiveDA_report.pdf.
src/dann.py: Domain-Adversarial Neural Network implementationsrc/dataset_creation.py: Script for dataset pre-processing and data loaderssrc/deepcoral.py: Implementation of Deep CORAL (CORrelation ALignment)src/lower_bound.py: Lower boundsrc/upper_bound.py: Upper boundsrc/utils.py: Utility functions including model architectures and helper functions
You can install the required packages using the following command:
pip install -r requirements.txt- Clone the repository:
git clone https://github.com/yourusername/YourRepositoryName.git- Install the requirements:
pip install -r requirements.txt- Create a folder named 'data' and install the required datasets there.
mkdir data- Run the script for the adaptation method you're interested in. For example, to run DANN:
cd src
python dann.py- The output results will be displayed on the console and can be further analyzed as per your requirements.
| AD | AdaBN | DANN | DeepCORAL |
|---|---|---|---|
| 0 | 0 | 64.92% | 64.45% |
| 0 | 1 | 63.88% | 66.87% |
| 1 | 0 | 71.52% | 69.53% |
| 1 | 1 | 68.66% | 62.23% |
Table 1: Results of our models for AID to UCM transfer with various configurations of Adaptive Dropout (AD) and Adaptive Batch Normalization (AdaBN). 1: True, 0: False.
| AD | AdaBN | DANN | DeepCORAL |
|---|---|---|---|
| 0 | 0 | 60.64% | 61.03% |
| 0 | 1 | 55.71% | 56.86% |
| 1 | 0 | 64.61% | 62.37% |
| 1 | 1 | 49.85% | 65.11% |
Table 2: Results of our models for UCM to AID transfer with various configurations of Adaptive Dropout (AD) and Adaptive Batch Normalization (AdaBN). 1: True, 0: False.
For detailed methodology and discussion, please refer to AdaptiveDA_report.pdf.
If you have any questions or would like to contribute, feel free to reach out.
- Emirhan Böge: emirhanboge@sabanciuniv.edu