-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_og_meta_train.sh
executable file
·61 lines (51 loc) · 1.25 KB
/
run_og_meta_train.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
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
#!/bin/bash
DATASET=omniglot
DATASET_DIR=/home/ubuntu/metanas_1/omniglot
TRAIN_DIR=/home/ubuntu/metanas_1/results
mkdir -p $TRAIN_DIR
args=(
# Execution
--name metatrain_og \
--job_id 0 \
--path ${TRAIN_DIR} \
--data_path ${DATASET_DIR} \
--dataset $DATASET
--hp_setting 'og_metanas' \
--use_hp_setting 1 \
--workers 0 \
--gpus 0 \
--test_adapt_steps 1.0 \
# few shot params
# examples per class
--n 5 \
# number classes
--k 20 \
# test examples per class
--q 1 \
--meta_model_prune_threshold 0.01 \
--alpha_prune_threshold 0.01 \
# Meta Learning
--meta_model searchcnn \
--meta_epochs 200 \
--warm_up_epochs 0 \
--use_pairwise_input_alphas \
--eval_freq 1000 \
--eval_epochs 5 \
--normalizer softmax \
--normalizer_temp_anneal_mode linear \
--normalizer_t_min 0.05 \
--normalizer_t_max 1.0 \
--drop_path_prob 0.2 \
# Architectures
--init_channels 28 \
--layers 4 \
--reduction_layers 1 3 \
--use_first_order_darts \
--loss_nn loss_nn \
--pretrained none \
--loss_proxy mse \
--use_torchmeta_loader \
--residual residual \
--print_freq 1 \
)
python -u -m metanas.metanas_main "${args[@]}"