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
3f71e8e7
Commit
3f71e8e7
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[script.evaluate] Fix use of second-annotator
parent
e2f616e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Streamlining
Pipeline
#39280
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/binseg/script/evaluate.py
+8
-5
8 additions, 5 deletions
bob/ip/binseg/script/evaluate.py
with
8 additions
and
5 deletions
bob/ip/binseg/script/evaluate.py
+
8
−
5
View file @
3f71e8e7
...
...
@@ -53,7 +53,7 @@ def _validate_threshold(t, dataset):
\b
1. Runs evaluation on an existing dataset configuration:
\b
$ bob binseg evaluate -vv
m2unet
drive --predictions-folder=path/to/predictions --output-folder=path/to/results
$ bob binseg evaluate -vv drive --predictions-folder=path/to/predictions --output-folder=path/to/results
\b
2. To run evaluation on a folder with your own images and annotations, you
must first specify resizing, cropping, etc, so that the image can be
...
...
@@ -64,7 +64,7 @@ def _validate_threshold(t, dataset):
\b
$ bob binseg config copy csv-dataset-example mydataset.py
# modify
"
mydataset.py
"
to your liking
$ bob binseg evaluate -vv
m2unet
mydataset.py --predictions-folder=path/to/predictions --output-folder=path/to/results
$ bob binseg evaluate -vv mydataset.py --predictions-folder=path/to/predictions --output-folder=path/to/results
"""
,
)
@click.option
(
...
...
@@ -154,9 +154,12 @@ def evaluate(
if
not
isinstance
(
dataset
,
dict
):
dataset
=
{
"
test
"
:
dataset
}
if
second_annotator
is
not
None
:
if
not
isinstance
(
second_annotator
,
dict
):
second_annotator
=
{
"
test
"
:
second_annotator
}
if
second_annotator
is
None
:
second_annotator
=
{}
elif
not
isinstance
(
second_annotator
,
dict
):
second_annotator
=
{
"
test
"
:
second_annotator
}
#else, second_annotator must be a dict
if
isinstance
(
threshold
,
str
):
# first run evaluation for reference dataset, do not save overlays
...
...
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