forked from facebookresearch/GradientEpisodicMemory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_gem.sh
executable file
·33 lines (26 loc) · 1.77 KB
/
run_gem.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
30
31
32
33
#!/bin/bash
# runs bilvl coreset + GEM
MY_PYTHON="python"
MNIST_ROTA="--n_layers 2 --n_hiddens 100 --data_path data/ --save_path results/ --batch_size 10 --log_every 100 --samples_per_task 1000 --data_file mnist_rotations.pt --cuda no --seed 0"
MNIST_PERM="--n_layers 2 --n_hiddens 100 --data_path data/ --save_path results/ --batch_size 10 --log_every 100 --samples_per_task 1000 --data_file mnist_permutations.pt --cuda no --seed 0"
CIFAR_100i="--n_layers 2 --n_hiddens 100 --data_path data/ --save_path results/ --batch_size 10 --log_every 100 --samples_per_task 2500 --data_file cifar100.pt --cuda yes --seed 0"
# Single
# $MY_PYTHON main.py $MNIST_PERM --model single --lr 0.03
# Original GEM
# $MY_PYTHON main.py $MNIST_ROTA --model gem --lr 0.01 --n_memories 256 --memory_strength 0.5
$MY_PYTHON main.py $MNIST_PERM --model gem --lr 0.1 --n_memories 100 --memory_strength 0.5
# $MY_PYTHON main.py $CIFAR_100i --model gem --lr 0.1 --n_memories 256 --memory_strength 0.5
# Surprise GEM
# $MY_PYTHON main.py $MNIST_ROTA --model gem_surprise --lr 0.01 --n_memories 256 --memory_strength 0.5
$MY_PYTHON main.py $MNIST_PERM --model gem_surprise --lr 0.1 --n_memories 100 --memory_strength 0.5
# $MY_PYTHON main.py $CIFAR_100i --model gem_surprise --lr 0.1 --n_memories 256 --memory_strength 0.5
# Balanced GEM
# $MY_PYTHON main.py $MNIST_ROTA --model gem_balanced --lr 0.01 --n_memories 256 --memory_strength 0.5
$MY_PYTHON main.py $MNIST_PERM --model gem_balanced --lr 0.1 --n_memories 100 --memory_strength 0.5
# $MY_PYTHON main.py $CIFAR_100i --model gem_balanced --lr 0.1 --n_memories 256 --memory_strength 0.5
# Coresets GEM
$MY_PYTHON main.py $MNIST_PERM --model gem_coreset --lr 0.1 --n_memories 100 --memory_strength 0.5
# plot results
cd results/
$MY_PYTHON plot_results.py
cd ..