Skip to content
Snippets Groups Projects
Commit a44380ce authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[doc] Reset scripts for baseline and xtest [ci skip]

parent 1c136bc1
No related branches found
No related tags found
No related merge requests found
Pipeline #39848 skipped
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
# Runs all of our baselines # Runs all of our baselines
# set output directory and location of "bob" executable # set output directory and location of "bob" executable
OUTDIR=/path/to/output/diretory OUTDIR=/idiap/temp/aanjos/binseg/baselines-with-validation
BOB=/path/to/bob/execuble BOB=/idiap/user/aanjos/work/bob/bob.ip.binseg/bin/bob
# run <modelconfig> <dbconfig> <batchsize> [<device> [<queue>]] # run <modelconfig> <dbconfig> <batchsize> [<device> [<queue>]]
function run() { function run() {
...@@ -15,8 +15,7 @@ function run() { ...@@ -15,8 +15,7 @@ function run() {
cmd+=("-vv" "--device=${device}" ${1} ${2}) cmd+=("-vv" "--device=${device}" ${1} ${2})
cmd+=("--batch-size=${3}" "--output-folder=${OUTDIR}/${1}/${2}") cmd+=("--batch-size=${3}" "--output-folder=${OUTDIR}/${1}/${2}")
# notice this assumes gridtk is installed [ $# -gt 4 ] && cmd=(jman submit "--name=$(basename ${OUTDIR})-${1}-${2}" "--memory=24G" "--queue=${5}" -- "${cmd[@]}")
[ $# -gt 4 ] && cmd=(jman submit "--memory=24G" "--queue=${5}" -- "${cmd[@]}")
"${cmd[@]}" "${cmd[@]}"
} }
...@@ -24,23 +23,23 @@ function run() { ...@@ -24,23 +23,23 @@ function run() {
# run/submit all baselines # run/submit all baselines
# comment out from "sgpu/gpu" to run locally # comment out from "sgpu/gpu" to run locally
# comment out from "cuda:0" to run on CPU # comment out from "cuda:0" to run on CPU
run m2unet stare 6 #cuda:0 #sgpu run m2unet drive 16 cuda:0 sgpu
run hed stare 4 #cuda:0 #sgpu run hed drive 8 cuda:0 sgpu
run driu stare 5 #cuda:0 #sgpu run driu drive 8 cuda:0 sgpu
run unet stare 2 #cuda:0 #sgpu run unet drive 4 cuda:0 sgpu
run m2unet drive 16 #cuda:0 #sgpu run m2unet stare 6 cuda:0 sgpu
run hed drive 8 #cuda:0 #sgpu run hed stare 4 cuda:0 sgpu
run driu drive 8 #cuda:0 #sgpu run driu stare 5 cuda:0 sgpu
run unet drive 4 #cuda:0 #sgpu run unet stare 2 cuda:0 sgpu
run m2unet iostar-vessel 6 #cuda:0 #sgpu run m2unet chasedb1 6 cuda:0 sgpu
run hed iostar-vessel 4 #cuda:0 #sgpu run hed chasedb1 4 cuda:0 sgpu
run driu iostar-vessel 4 #cuda:0 #sgpu run driu chasedb1 4 cuda:0 sgpu
run unet iostar-vessel 2 #cuda:0 #sgpu run unet chasedb1 2 cuda:0 sgpu
run m2unet chasedb1 6 #cuda:0 #sgpu run m2unet hrf 1 cuda:0 gpu
run hed chasedb1 4 #cuda:0 #sgpu run hed hrf 1 cuda:0 gpu
run driu chasedb1 4 #cuda:0 #sgpu run driu hrf 1 cuda:0 gpu
run unet chasedb1 2 #cuda:0 #sgpu run unet hrf 1 cuda:0 gpu
run m2unet hrf 1 #cuda:0 #gpu run m2unet iostar-vessel 6 cuda:0 sgpu
run hed hrf 1 #cuda:0 #gpu run hed iostar-vessel 4 cuda:0 sgpu
run driu hrf 1 #cuda:0 #gpu run driu iostar-vessel 4 cuda:0 sgpu
run unet hrf 1 #cuda:0 #gpu run unet iostar-vessel 2 cuda:0 sgpu
#!/usr/bin/env bash
# Runs cross database tests
BOB=$HOME/work/bob/bob.ip.binseg/bin/bob
for d in drive stare chasedb1 iostar-vessel hrf; do
for m in driu hed m2unet unet; do
cmd=(${BOB} binseg analyze -vv ${m} "${d}-mtest")
cmd+=("--weight=${m}/${d}/model/model_lowest_valid_loss.pth")
cmd+=("--output-folder=${m}/${d}/mtest")
"${cmd[@]}"
done
done
...@@ -7,7 +7,7 @@ BOB=$HOME/work/bob/bob.ip.binseg/bin/bob ...@@ -7,7 +7,7 @@ BOB=$HOME/work/bob/bob.ip.binseg/bin/bob
for d in drive stare chasedb1 iostar-vessel hrf; do for d in drive stare chasedb1 iostar-vessel hrf; do
for m in driu hed m2unet unet; do for m in driu hed m2unet unet; do
cmd=(${BOB} binseg analyze -vv ${m} "${d}-xtest") cmd=(${BOB} binseg analyze -vv ${m} "${d}-xtest")
cmd+=("--weight=${m}/${d}/model/model_final.pth") cmd+=("--weight=${m}/${d}/model/model_lowest_valid_loss.pth")
cmd+=("--output-folder=${m}/${d}/xtest") cmd+=("--output-folder=${m}/${d}/xtest")
"${cmd[@]}" "${cmd[@]}"
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment