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
f98f000a
Commit
f98f000a
authored
Apr 11, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 13, 2018
Browse files
Update create_pascal_tf_record.py and create_pet_tf_record.py
PiperOrigin-RevId: 192494267
parent
2151c447
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
30 deletions
+31
-30
research/object_detection/dataset_tools/create_pascal_tf_record.py
...object_detection/dataset_tools/create_pascal_tf_record.py
+1
-1
research/object_detection/dataset_tools/create_pet_tf_record.py
...ch/object_detection/dataset_tools/create_pet_tf_record.py
+30
-29
No files found.
research/object_detection/dataset_tools/create_pascal_tf_record.py
View file @
f98f000a
...
@@ -104,7 +104,7 @@ def dict_to_tf_example(data,
...
@@ -104,7 +104,7 @@ def dict_to_tf_example(data,
truncated
=
[]
truncated
=
[]
poses
=
[]
poses
=
[]
difficult_obj
=
[]
difficult_obj
=
[]
if
data
.
has_key
(
'object'
)
:
if
'object'
in
data
:
for
obj
in
data
[
'object'
]:
for
obj
in
data
[
'object'
]:
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
if
ignore_difficult_instances
and
difficult
:
if
ignore_difficult_instances
and
difficult
:
...
...
research/object_detection/dataset_tools/create_pet_tf_record.py
View file @
f98f000a
...
@@ -136,6 +136,7 @@ def dict_to_tf_example(data,
...
@@ -136,6 +136,7 @@ def dict_to_tf_example(data,
poses
=
[]
poses
=
[]
difficult_obj
=
[]
difficult_obj
=
[]
masks
=
[]
masks
=
[]
if
'object'
in
data
:
for
obj
in
data
[
'object'
]:
for
obj
in
data
[
'object'
]:
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
if
ignore_difficult_instances
and
difficult
:
if
ignore_difficult_instances
and
difficult
:
...
...
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