Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
244e87c4
Commit
244e87c4
authored
Jul 19, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix evaluation
parent
1554550d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
examples/FasterRCNN/eval.py
examples/FasterRCNN/eval.py
+1
-1
tensorpack/callbacks/monitor.py
tensorpack/callbacks/monitor.py
+0
-5
No files found.
examples/FasterRCNN/eval.py
View file @
244e87c4
...
@@ -114,7 +114,7 @@ def eval_coco(df, detect_func):
...
@@ -114,7 +114,7 @@ def eval_coco(df, detect_func):
'image_id'
:
img_id
,
'image_id'
:
img_id
,
'category_id'
:
cat_id
,
'category_id'
:
cat_id
,
'bbox'
:
list
(
map
(
lambda
x
:
round
(
float
(
x
),
2
),
box
)),
'bbox'
:
list
(
map
(
lambda
x
:
round
(
float
(
x
),
2
),
box
)),
'score'
:
round
(
r
.
score
,
3
),
'score'
:
round
(
float
(
r
.
score
)
,
3
),
}
}
# also append segmentation to results
# also append segmentation to results
...
...
tensorpack/callbacks/monitor.py
View file @
244e87c4
...
@@ -122,9 +122,6 @@ class Monitors(Callback):
...
@@ -122,9 +122,6 @@ class Monitors(Callback):
for
m
in
self
.
_monitors
:
for
m
in
self
.
_monitors
:
assert
isinstance
(
m
,
TrainingMonitor
),
m
assert
isinstance
(
m
,
TrainingMonitor
),
m
def
_setup_graph
(
self
):
self
.
_scalar_history
.
setup_graph
(
self
.
trainer
)
def
_dispatch
(
self
,
func
):
def
_dispatch
(
self
,
func
):
for
m
in
self
.
_monitors
:
for
m
in
self
.
_monitors
:
func
(
m
)
func
(
m
)
...
@@ -404,8 +401,6 @@ class ScalarPrinter(TrainingMonitor):
...
@@ -404,8 +401,6 @@ class ScalarPrinter(TrainingMonitor):
self
.
_enable_step
=
enable_step
self
.
_enable_step
=
enable_step
self
.
_enable_epoch
=
enable_epoch
self
.
_enable_epoch
=
enable_epoch
def
_setup_graph
(
self
):
self
.
_dic
=
{}
self
.
_dic
=
{}
def
_trigger_step
(
self
):
def
_trigger_step
(
self
):
...
...
Write
Preview
Markdown
is supported
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