Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.vein
Commits
dbdadf96
Commit
dbdadf96
authored
Oct 05, 2017
by
André Anjos
💬
Committed by
André Anjos
Oct 12, 2017
Browse files
Printout metrics as they are evaluated
parent
01954bda
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/vein/script/compare_rois.py
View file @
dbdadf96
...
...
@@ -171,7 +171,6 @@ def main(user_input=None):
from
..preprocessor
import
utils
metrics
=
[]
for
k
in
gt
:
logger
.
info
(
"Evaluating metrics for `%s'..."
%
k
)
gt_file
=
os
.
path
.
join
(
args
[
'<ground-truth>'
],
k
)
db_file
=
os
.
path
.
join
(
args
[
'<database>'
],
k
)
gt_roi
=
bob
.
io
.
base
.
HDF5File
(
gt_file
).
read
(
'mask'
)
...
...
@@ -182,6 +181,7 @@ def main(user_input=None):
utils
.
intersect_ratio
(
gt_roi
,
db_roi
),
utils
.
intersect_ratio_of_complement
(
gt_roi
,
db_roi
),
))
logger
.
info
(
"%s: JI = %.5g, M1 = %.5g, M2 = %5.g"
%
metrics
[
-
1
])
# Print statistics
names
=
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment