Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
2624a23e
Commit
2624a23e
authored
Apr 09, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 13, 2018
Browse files
Minor fixes to match git repo.
PiperOrigin-RevId: 192166224
parent
e25c014e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
research/object_detection/dataset_tools/create_pascal_tf_record.py
...object_detection/dataset_tools/create_pascal_tf_record.py
+16
-15
research/object_detection/g3doc/evaluation_protocols.md
research/object_detection/g3doc/evaluation_protocols.md
+1
-1
No files found.
research/object_detection/dataset_tools/create_pascal_tf_record.py
View file @
2624a23e
...
@@ -104,21 +104,22 @@ def dict_to_tf_example(data,
...
@@ -104,21 +104,22 @@ def dict_to_tf_example(data,
truncated
=
[]
truncated
=
[]
poses
=
[]
poses
=
[]
difficult_obj
=
[]
difficult_obj
=
[]
for
obj
in
data
[
'object'
]:
if
data
.
has_key
(
'object'
):
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
for
obj
in
data
[
'object'
]:
if
ignore_difficult_instances
and
difficult
:
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
continue
if
ignore_difficult_instances
and
difficult
:
continue
difficult_obj
.
append
(
int
(
difficult
))
difficult_obj
.
append
(
int
(
difficult
))
xmin
.
append
(
float
(
obj
[
'bndbox'
][
'xmin'
])
/
width
)
ymin
.
append
(
float
(
obj
[
'bndbox'
][
'ymin'
])
/
height
)
xmin
.
append
(
float
(
obj
[
'bndbox'
][
'xmin'
])
/
width
)
xmax
.
append
(
float
(
obj
[
'bndbox'
][
'xmax'
])
/
width
)
ymin
.
append
(
float
(
obj
[
'bndbox'
][
'ymin'
])
/
height
)
ymax
.
append
(
float
(
obj
[
'bndbox'
][
'ymax'
])
/
height
)
xmax
.
append
(
float
(
obj
[
'bndbox'
][
'xmax'
])
/
width
)
classes_text
.
append
(
obj
[
'name'
].
encode
(
'utf8'
))
ymax
.
append
(
float
(
obj
[
'bndbox'
][
'ymax'
])
/
height
)
classes
.
append
(
label_map_dict
[
obj
[
'name'
]])
classes_text
.
append
(
obj
[
'name'
].
encode
(
'utf8'
))
truncated
.
append
(
int
(
obj
[
'truncated'
]))
classes
.
append
(
label_map_dict
[
obj
[
'name'
]])
poses
.
append
(
obj
[
'pose'
].
encode
(
'utf8'
))
truncated
.
append
(
int
(
obj
[
'truncated'
]))
poses
.
append
(
obj
[
'pose'
].
encode
(
'utf8'
))
example
=
tf
.
train
.
Example
(
features
=
tf
.
train
.
Features
(
feature
=
{
example
=
tf
.
train
.
Example
(
features
=
tf
.
train
.
Features
(
feature
=
{
'image/height'
:
dataset_util
.
int64_feature
(
height
),
'image/height'
:
dataset_util
.
int64_feature
(
height
),
...
...
research/object_detection/g3doc/evaluation_protocols.md
View file @
2624a23e
...
@@ -31,7 +31,7 @@ while for the Weighted PASCAL VOC metric the final mAP value will be influenced
...
@@ -31,7 +31,7 @@ while for the Weighted PASCAL VOC metric the final mAP value will be influenced
Similar to pascal voc 2007 detection metric, but computes the intersection over
Similar to pascal voc 2007 detection metric, but computes the intersection over
union based on the object masks instead of object boxes.
union based on the object masks instead of object boxes.
## Weighted PASCAL VOC
detec
tion metric
## Weighted PASCAL VOC
instance segmenta
tion metric
`EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'`
`EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'`
...
...
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