-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_remote_old_boost.sh
81 lines (71 loc) · 1.86 KB
/
run_remote_old_boost.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
set -e
# Somehow, the path is not correctly set - I don't totally get it
PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
size=8
case $DATASET in
"crcns-pvc1")
dataset_num=0
;;
"crcns-pvc4")
dataset_num=1
;;
"crcns-mt1")
dataset_num=2
;;
"crcns-mt2")
dataset_num=3
;;
"packlab-mst")
dataset_num=4
;;
*)
echo "Unknown dataset"
exit 0;
esac
echo "Free space info"
df -h
datasets=(pvc1-repeats pvc4 mt1_norm_neutralbg mt2 mst_norm_neutralbg)
max_cells=(22 24 83 43 35)
dataset=${datasets[$dataset_num]}
max_cell=${max_cells[$dataset_num]}
export AWS_RETRY_MODE=standard
export AWS_MAX_ATTEMPTS=3
pip install -r requirements.txt
aws s3 sync "s3://yourheadisthere/data_derived/$DATASET" "/data/data_derived/$DATASET"
aws s3 sync "s3://yourheadisthere/checkpoints" "/data/checkpoints"
# Not sure if actually necessary.
chown -R nobody:nogroup /data
chown -R nobody:nogroup /cache
ckpt_root=/data/checkpoints
data_root=/data/data_derived
cache_root=/cache
slowfast_root=../slowfast
# airsim_04 MotionNet
model=$MODEL
echo "$dataset" "$model"
for ((subset = 0; subset <= $max_cell; subset++))
do
echo "Fitting cell $subset"
python train_convex.py \
--exp_name boosting_no_resize \
--dataset "$dataset" \
--features "$model" \
--subset "$subset" \
--batch_size 8 \
--cache_root $cache_root \
--ckpt_root $ckpt_root \
--data_root $data_root \
--slowfast_root $slowfast_root \
--aggregator downsample \
--aggregator_sz $size \
--skip_existing \
--subsample_layers \
--autotune \
--no_save \
--save_predictions \
--method boosting \
--resize 168
# Clear cache.
rm -f $cache_root/*
done