Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySegCNN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
earth_observation_public
PySegCNN
Commits
d004de94
Commit
d004de94
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Added options to specify dataset path and whether to overwrite existing model evaluations.
parent
6e3a7d7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pysegcnn/core/cli.py
+14
-1
14 additions, 1 deletion
pysegcnn/core/cli.py
pysegcnn/main/eval.py
+3
-1
3 additions, 1 deletion
pysegcnn/main/eval.py
with
17 additions
and
2 deletions
pysegcnn/core/cli.py
+
14
−
1
View file @
d004de94
...
...
@@ -126,7 +126,7 @@ def evaluation_parser():
# in cross validation
parser
.
add_argument
(
'
-a
'
,
'
--aggregate
'
,
type
=
bool
,
help
=
(
'
Aggregate the statistics of the different
'
'
models matching the defined pattern
.
{}.
'
'
models matching the defined pattern {}.
'
.
format
(
default
)),
default
=
False
,
nargs
=
'
?
'
,
const
=
True
,
metavar
=
''
)
...
...
@@ -162,10 +162,23 @@ def evaluation_parser():
.
format
(
default
)),
default
=
False
,
nargs
=
'
?
'
,
const
=
True
,
metavar
=
''
)
# optional argument: whether to overwrite existing files
parser
.
add_argument
(
'
-o
'
,
'
--overwrite
'
,
type
=
bool
,
help
=
(
'
Overwrite existing model evaluations {}.
'
.
format
(
default
)),
default
=
False
,
nargs
=
'
?
'
,
const
=
True
,
metavar
=
''
)
# optional argument: plot scenes
parser
.
add_argument
(
'
-plot
'
,
'
--plot-scenes
'
,
type
=
bool
,
help
=
(
'
Save plots for each predicted scene {}.
'
.
format
(
default
)),
default
=
False
,
nargs
=
'
?
'
,
const
=
True
,
metavar
=
''
)
# optional argument: dataset path
parser
.
add_argument
(
'
-ds
'
,
'
--dataset-path
'
,
type
=
str
,
help
=
(
'
Path to the datasets on the current machine {}.
'
'
Per default, it is assumed to be same as during
'
'
model training .
'
.
format
(
default
)),
default
=
''
,
metavar
=
''
)
return
parser
This diff is collapsed.
Click to expand it.
pysegcnn/main/eval.py
+
3
−
1
View file @
d004de94
...
...
@@ -73,10 +73,12 @@ if __name__ == '__main__':
aggregate
=
args
.
aggregate
,
ds
=
ds
,
ds_split
=
ds_split
,
drive_path
=
args
.
dataset_path
,
map_labels
=
args
.
map_labels
,
predict_scene
=
args
.
predict_scene
,
plot_scenes
=
args
.
plot_scenes
,
cm
=
args
.
confusion_matrix
)
cm
=
args
.
confusion_matrix
,
overwrite
=
args
.
overwrite
)
# evaluate models
output
=
inference
.
evaluate
()
...
...
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