Implementation of Adversarial Discriminative Domain Adaptation in Chainer.
Note this code depends on this version of Chainer (or newer). Please check out the source from that link rather than installing via pip.
The following results are for the SVHN to MNIST domain adaptation task.
Training | % accuracy (Paper) | % accuracy (This implementation) |
---|---|---|
source only | 0.601 | 0.575 |
ADDA | 0.760 | 0.800 |
Run python train.py -g 0
to train everything using GPU 0. SVHN and MNIST datasets will download automatically. If a classifier pretrained on the source (SVHN) domain is not found, one will be trained first, then continue on to do ADDA.