pytorch implement for the NIPS 2017 paper Few-Shot Adversarial Domain Adaptation
- This code has been tested on Python 3.6. pytorch 0.4.
- Install PyTorch, torchvision and SciPy:
pip install -r requirements.txt
- Run
python main.py
and get MNIST and SVHN dataset in ./data/
- Run
python main.py
.- Step 1 refers to pretrain model using MNIST dataset
- Setp 2 refers to pretrain DCD using G1,G2,G3,G4.
- Step 3 refers to train g,h and DCD iteratively.