-
Notifications
You must be signed in to change notification settings - Fork 4
/
reproduce.sh
executable file
·32 lines (21 loc) · 1.25 KB
/
reproduce.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#/bin/bash
LR=0.1
BS=128
DROPOUT=0.5
WD=1e-4
## MNIST
COMMON="--filters 64 --dataset mnist --augmentation none --epochs 25 --batch-size $BS --lr $LR --patience 5 --dropout $DROPOUT --wd $WD"
python train.py --model resnet --downsample residual $COMMON
python train.py --model odenet --downsample residual --adjoint $COMMON
python train.py --model odenet --downsample one-shot --adjoint $COMMON
find runs_mnist -maxdepth 1 -mindepth 1 -exec python evaluate.py nfe {} --tol 0.001 \;
find runs_mnist -maxdepth 1 -mindepth 1 -exec python evaluate.py features {} \;
find runs_mnist -maxdepth 1 -mindepth 1 -exec python evaluate.py retrieval {} \;
## CIFAR-10
COMMON="--filters 256 --dataset cifar10 --augmentation crop+jitter+flip+norm --epochs 250 --batch-size $BS --lr $LR --patience 15 --dropout $DROPOUT --wd $WD"
python train.py --model resnet --downsample residual $COMMON
python train.py --model odenet --downsample residual --adjoint $COMMON
python train.py --model odenet --downsample one-shot --adjoint $COMMON
find runs_cifar10 -maxdepth 1 -mindepth 1 -exec python evaluate.py nfe {} --tol 0.001 \;
find runs_cifar10 -maxdepth 1 -mindepth 1 -exec python evaluate.py features {} \;
find runs_cifar10 -maxdepth 1 -mindepth 1 -exec python evaluate.py retrieval {} \;