Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepdraw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
medai
software
deepdraw
Commits
a44380ce
Commit
a44380ce
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Reset scripts for baseline and xtest [ci skip]
parent
1c136bc1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#39848
skipped
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/scripts/baselines.sh
+23
-24
23 additions, 24 deletions
doc/scripts/baselines.sh
doc/scripts/mtest.sh
+14
-0
14 additions, 0 deletions
doc/scripts/mtest.sh
doc/scripts/xtest.sh
+1
-1
1 addition, 1 deletion
doc/scripts/xtest.sh
with
38 additions
and
25 deletions
doc/scripts/baselines.sh
+
23
−
24
View file @
a44380ce
...
@@ -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 1
6 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 1
6
#
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
#s
gpu
run m2unet
hrf 1
cuda:0 gpu
run hed
chasedb1 4
#
cuda:0
#s
gpu
run hed
hrf 1
cuda:0 gpu
run driu
chasedb1 4
#
cuda:0
#s
gpu
run driu
hrf 1
cuda:0 gpu
run unet
chasedb1 2
#
cuda:0
#s
gpu
run unet
hrf 1
cuda:0 gpu
run m2unet
hrf 1
#
cuda:0
#
gpu
run m2unet
iostar-vessel 6
cuda:0
s
gpu
run hed
hrf 1
#
cuda:0
#
gpu
run hed
iostar-vessel 4
cuda:0
s
gpu
run driu
hrf 1
#
cuda:0
#
gpu
run driu
iostar-vessel 4
cuda:0
s
gpu
run unet
hrf 1
#
cuda:0
#
gpu
run unet
iostar-vessel 2
cuda:0
s
gpu
This diff is collapsed.
Click to expand it.
doc/scripts/mtest.sh
0 → 100755
+
14
−
0
View file @
a44380ce
#!/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
This diff is collapsed.
Click to expand it.
doc/scripts/xtest.sh
+
1
−
1
View file @
a44380ce
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment