This code requires Python 3, and is implemented in Tensorflow.
Hopefully things should be fairly easy to run out of the box:
pip install -r requirements.txt
mkdir data snapshot
export PYTHONPATH="$PWD:$PYTHONPATH"
scripts/svhn-mnist.sh
The provided script does the following things:
data/svhn
in the process)data/mnist
in the process)snapshot/lenet_svhn
)snapshot/adda_lenet_svhn_mnist
)scripts/svhn-mnist.sh
for hyperparameters.adda/models/lenet.py
.preprocessing
function in adda/models/model.py
.tools/train_adda.py
.adda/adversary.py
.