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
fb6e611a
Commit
fb6e611a
authored
Feb 04, 2021
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 355637402
parent
47f8d4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
official/vision/beta/data/create_coco_tf_record.py
official/vision/beta/data/create_coco_tf_record.py
+4
-4
No files found.
official/vision/beta/data/create_coco_tf_record.py
View file @
fb6e611a
...
@@ -283,11 +283,11 @@ def generate_annotations(images, image_dir,
...
@@ -283,11 +283,11 @@ def generate_annotations(images, image_dir,
"""Generator for COCO annotations."""
"""Generator for COCO annotations."""
for
image
in
images
:
for
image
in
images
:
if
img_to_obj_annotation
:
object_annotation
=
(
img_to_obj_annotation
.
get
(
image
[
'id'
],
None
)
if
object_annotation
=
img_to_obj_annotation
.
get
(
image
[
'id'
],
None
)
img_to_obj_annotation
else
None
)
if
img_to_caption_annotation
:
caption_annotaion
=
(
img_to_caption_annotation
.
get
(
image
[
'id'
],
None
)
if
caption_annotaion
=
img_to_caption_annotation
.
get
(
image
[
'id'
],
None
)
img_to_caption_annotation
else
None
)
yield
(
image
,
image_dir
,
object_annotation
,
id_to_name_map
,
yield
(
image
,
image_dir
,
object_annotation
,
id_to_name_map
,
caption_annotaion
,
include_masks
)
caption_annotaion
,
include_masks
)
...
...
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