Emb-atda is a "unsupervised" domain adaptation algorithm based on "Asymmetric Tri-training for Unsupervised Domain Adaptation (atda)". Atda was modified such that it could be ported to an embedded device or a microcontroller. This repository contains an implementation of emb-atda and a guide on how to run it.
- python 3.7.3
- tensorflow 1.14.0
- keras 2.2.4
$ cd data
Download the BSDS500 dataset:
$ curl -L -O http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/BSR/BSR_bsds500.tgz
Create the mnistm dataset with:
$ python3 create_mnistm.py
In order to test the emb-atda algorithm run:
$ cd ..
$ python3 mnist2mnistm.py Load noPlot
OR
$ cd ..
$ python3 mnist2mnistm.py Train Plot
to retrain the neural network on source domain data and enable plots