-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathrun_evaluation_docker.sh
74 lines (69 loc) · 2.96 KB
/
run_evaluation_docker.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
#!/bin/bash
WRKDIR=/media/lext/FAST/OA_progression_project/workdir
SNAPSHOT=2019_01_29_10_18 #$(ls -td $WRKDIR/snapshots/* | head -1 | rev |cut -d/ -f1 | rev)
OAI_MOST_IMG_SRC=/media/lext/FAST/OA_progression_project/Data/MOST_OAI_00_0_2
docker build -t oaprog_img .
echo "====> Working on the snapshot $SNAPSHOT"
## If you run it first time - remove the option "--from_cache".
#nvidia-docker run -it --name oa_progression_oof_inference --rm \
# -v $WRKDIR:/workdir/:rw \
# -v $OAI_MOST_IMG_SRC:/data/:ro --ipc=host \
# oaprog_img python -u run_oof_inference.py --snapshots /workdir/snapshots \
# --snapshot $SNAPSHOT \
# --dataset_root /data/ \
# --save_dir /workdir/Results \
# --metadata_root /workdir/Metadata \
# # --from_cache True
#
## Running the "easy baseline" based on logreg
#nvidia-docker run -it --name oa_prog_logreg_baselines_eval --rm \
# -v $WRKDIR:/workdir/:rw --ipc=host \
# oaprog_img python -u run_logreg_baselines.py \
# --snapshots_root /workdir/snapshots \
# --snapshot $SNAPSHOT \
# --metadata_root /workdir/Metadata \
# --save_dir /workdir/Results
#
## Running the more complex baseline based on LightGBM and bayesian hyper-parameters tuning
#nvidia-docker run -it --name oa_prog_lgb_baselines_eval --rm \
# -v $WRKDIR:/workdir/:rw --ipc=host \
# oaprog_img python -u run_lgbm_baselines.py \
# --snapshots_root /workdir/snapshots \
# --snapshot $SNAPSHOT \
# --metadata_root /workdir/Metadata \
# --save_dir /workdir/Results
#
# If you run it first time - remove the option "--from_cache".
#nvidia-docker run -it --name oa_prog_evaluation --rm \
# -v $WRKDIR:/workdir/:rw \
# -v $OAI_MOST_IMG_SRC:/data/:ro --ipc=host \
# oaprog_img python -u run_dl_evaluation.py --snapshots /workdir/snapshots \
# --snapshot $SNAPSHOT \
# --dataset_root /data/ \
# --save_dir /workdir/Results \
# --metadata_root /workdir/Metadata \
# --from_cache True --plot_gcams True
#
## Running the stacked predictions
nvidia-docker run -it --name oa_prog_stacking_eval --rm \
-v $WRKDIR:/workdir/:rw --ipc=host \
oaprog_img python -u run_second_level_model.py \
--snapshots_root /workdir/snapshots \
--snapshot $SNAPSHOT \
--metadata_root /workdir/Metadata \
--save_dir /workdir/Results
#
## Generating the preliminary plots (just for viewing)
#nvidia-docker run -it --name oa_prog_eval_cmp --rm \
# -v $WRKDIR:/workdir/:rw --ipc=host \
# oaprog_img python -u run_models_comparison.py \
# --metadata_root /workdir/Metadata \
# --results_dir /workdir/Results
#
#echo "==> Evaluation results for KL0-1"
## Doing evaluation of the KL01 cases
#nvidia-docker run -it --name oa_prog_eval_kl01_cmp --rm \
# -v $WRKDIR:/workdir/:rw --ipc=host \
# oaprog_img python -u run_models_comparison_kl_01.py \
# --metadata_root /workdir/Metadata \
# --results_dir /workdir/Results