[853718]: / bm_experiments / run-all-experiments.sh

Download this file

102 lines (89 with data), 3.0 kB

  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
 98
 99
100
101
#!/bin/bash
export DISPLAY=""
# DEFINE GLOBAL PARAMS
jobs=3
table="~/Medical-data/dataset_ANHIR/images/dataset_medium.csv"
# this folder has to contain bland of images and landmarks
dataset="~/Medical-data/microscopy/TEMPORARY/borovec/dataset_ANHIR/images"
results="~/Medical-data/microscopy/TEMPORARY/borovec/experiments_ANHIR/"
apps="~/Applications"
preprocessings=("" \
"--preprocessing gray" \
"--preprocessing matching-rgb" \
"--preprocessing gray matching-rgb" \
"--preprocessing matching-rgb gray")
for pproc in "${preprocessings[@]}"
do
python bm_experiments/bm_ANTs.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-ANTs "$apps/antsbin/bin" \
-cfg ./configs/ANTs_SyN.txt \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_ANTsPy.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-py python3 \
-script ./scripts/Python/run_ANTsPy.py \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_bUnwarpJ.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-Fiji "$apps/Fiji.app/ImageJ-linux64" \
-cfg ./configs/ImageJ_bUnwarpJ_histol.yaml \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_bUnwarpJ.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-Fiji "$apps/Fiji.app/ImageJ-linux64" \
-cfg ./configs/ImageJ_bUnwarpJ-SIFT_histol.yaml \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_DROP2.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-DROP "$apps/DROP2/dropreg" \
-cfg ./configs/DROP2.txt \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_elastix.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-elastix "$apps/elastix/bin" \
-cfg ./configs/elastix_bspline.txt \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_rNiftyReg.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-R "$apps/R-3.5.3/bin/Rscript" \
-script ./scripts/Rscript/RNiftyReg_linear.r \
"$pproc" \
--visual --unique --nb_workers $jobs
python bm_experiments/bm_RVSS.py \
-t $table \
-d $dataset \
-o $results \
--run_comp_benchmark \
-Fiji "$apps/Fiji.app/ImageJ-linux64" \
-cfg ./configs/ImageJ_RVSS_histol.yaml \
"$pproc" \
--visual --unique --nb_workers $jobs
done