forked from kuc2477/pytorch-deep-generative-replay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_full_experiments
executable file
·97 lines (82 loc) · 2.66 KB
/
run_full_experiments
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env bash
# ================
# Permutated MNIST
# ================
PERM_MNIST_GENERATOR_ITERATIONS=3000
PERM_MNIST_SOLVER_ITERATIONS=1000
PERM_MNIST_LR=0.0001
PERM_MNIST_IMPORTANCE_OF_NEW_TASK=0.3
./main.py --train \
--experiment=permutated-mnist \
--replay-mode=exact-replay \
--solver-iterations=$PERM_MNIST_SOLVER_ITERATIONS \
--lr=$PERM_MNIST_LR \
--importance-of-new-task=$PERM_MNIST_IMPORTANCE_OF_NEW_TASK
./main.py --train \
--experiment=permutated-mnist \
--replay-mode=generative-replay \
--generator-iterations=$PERM_MNIST_GENERATOR_ITERATIONS \
--solver-iterations=$PERM_MNIST_SOLVER_ITERATIONS \
--lr=$PERM_MNIST_LR \
--importance-of-new-task=$PERM_MNIST_IMPORTANCE_OF_NEW_TASK
./main.py --train \
--experiment=permutated-mnist \
--replay-mode=none \
--solver-iterations=$PERM_MNIST_SOLVER_ITERATIONS \
--lr=$PERM_MNIST_LR
# ==========
# MNIST-SVHN
# ==========
MNIST_SVHN_GENERATOR_ITERATIONS=20000
MNIST_SVHN_SOLVER_ITERATIONS=4000
MNIST_SVHN_LR=0.00003
MNIST_SVHN_IMPORTANCE_OF_NEW_TASK=0.4
./main.py --train \
--experiment=mnist-svhn \
--replay-mode=exact-replay \
--solver-iterations=$MNIST_SVHN_SOLVER_ITERATIONS \
--importance-of-new-task=$MNIST_SVHN_IMPORTANCE_OF_NEW_TASK \
--lr=$MNIST_SVHN_LR
./main.py --train \
--experiment=mnist-svhn \
--replay-mode=generative-replay \
--generator-iterations=$MNIST_SVHN_GENERATOR_ITERATIONS \
--solver-iterations=$MNIST_SVHN_SOLVER_ITERATIONS \
--importance-of-new-task=$MNIST_SVHN_IMPORTANCE_OF_NEW_TASK \
--lr=$MNIST_SVHN_LR \
--sample-log
./main.py --train \
--experiment=mnist-svhn \
--replay-mode=none \
--generator-iterations=$MNIST_SVHN_GENERATOR_ITERATIONS \
--solver-iterations=$MNIST_SVHN_SOLVER_ITERATIONS \
--lr=$MNIST_SVHN_LR \
--sample-log
# ==========
# SVHN-MNIST
# ==========
SVHN_MNIST_GENERATOR_ITERATIONS=20000
SVHN_MNIST_SOLVER_ITERATIONS=4000
SVHN_MNIST_LR=0.00003
SVHN_MNIST_IMPORTANCE_OF_NEW_TASK=0.4
./main.py --train \
--experiment=svhn-mnist \
--replay-mode=exact-replay \
--solver-iterations=$SVHN_MNIST_SOLVER_ITERATIONS \
--importance-of-new-task=$SVHN_MNIST_IMPORTANCE_OF_NEW_TASK \
--lr=$SVHN_MNIST_LR
./main.py --train \
--experiment=svhn-mnist \
--replay-mode=generative-replay \
--generator-iterations=$SVHN_MNIST_GENERATOR_ITERATIONS \
--solver-iterations=$SVHN_MNIST_SOLVER_ITERATIONS \
--importance-of-new-task=$SVHN_MNIST_IMPORTANCE_OF_NEW_TASK \
--lr=$SVHN_MNIST_LR \
--sample-log
./main.py --train \
--experiment=svhn-mnist \
--replay-mode=none \
--generator-iterations=$SVHN_MNIST_GENERATOR_ITERATIONS \
--solver-iterations=$SVHN_MNIST_SOLVER_ITERATIONS \
--lr=$SVHN_MNIST_LR \
--sample-log