A TensorFlow implementation for the paper:
Tangent-Normal Adversarial Regularization for Semi-Supervised Learning
Bing Yu*, Jingfeng Wu*, Jinwen Ma, Zhanxing Zhu
- python 3.6
- tensorflow 1.9.0
- numpy
python cifar10_to_numpy.py
The VAE checkpoint can be obtained via two ways:
- train by yourself:
python train_vae.py
- download a pre-trained one: without augmentation, with augmentation
All of the parameters should be easy to understand by their naming conventions.
- Training:
python train_tnar.py --resume vae-checkpoint
- Test:
python test_tnar.py --resume tnar-checkpoint
See the paper.