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
d11befff
Commit
d11befff
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[engine] Set logger on module level
parent
e4695064
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Streamlining
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/binseg/utils/evaluate.py
+6
-4
6 additions, 4 deletions
bob/ip/binseg/utils/evaluate.py
with
6 additions
and
4 deletions
bob/ip/binseg/utils/evaluate.py
+
6
−
4
View file @
d11befff
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# only use to evaluate 2nd human annotator
#
# only used to evaluate 2nd human annotator
import
os
import
os
import
logging
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch
import
pandas
as
pd
import
pandas
as
pd
...
@@ -17,6 +17,9 @@ from bob.ip.binseg.utils.plot import (
...
@@ -17,6 +17,9 @@ from bob.ip.binseg.utils.plot import (
from
PIL
import
Image
from
PIL
import
Image
from
torchvision.transforms.functional
import
to_tensor
from
torchvision.transforms.functional
import
to_tensor
import
logging
logger
=
logging
.
getLogger
(
__name__
)
def
batch_metrics
(
predictions
,
ground_truths
,
names
,
output_folder
,
logger
):
def
batch_metrics
(
predictions
,
ground_truths
,
names
,
output_folder
,
logger
):
"""
"""
...
@@ -116,7 +119,6 @@ def do_eval(
...
@@ -116,7 +119,6 @@ def do_eval(
device to use ``
'
cpu
'
`` or ``
'
cuda
'
``
device to use ``
'
cpu
'
`` or ``
'
cuda
'
``
output_folder : str
output_folder : str
"""
"""
logger
=
logging
.
getLogger
(
"
bob.ip.binseg.engine.evaluate
"
)
logger
.
info
(
"
Start evaluation
"
)
logger
.
info
(
"
Start evaluation
"
)
logger
.
info
(
"
Prediction folder {}
"
.
format
(
prediction_folder
))
logger
.
info
(
"
Prediction folder {}
"
.
format
(
prediction_folder
))
results_subfolder
=
os
.
path
.
join
(
output_folder
,
"
results
"
)
results_subfolder
=
os
.
path
.
join
(
output_folder
,
"
results
"
)
...
...
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