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
63ec7359
Commit
63ec7359
authored
Jan 13, 2021
by
Sara Beery
Committed by
TF Object Detection Team
Jan 13, 2021
Browse files
Adding float feature to dataset_util
PiperOrigin-RevId: 351610384
parent
7a8cbff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
research/object_detection/utils/dataset_util.py
research/object_detection/utils/dataset_util.py
+4
-0
No files found.
research/object_detection/utils/dataset_util.py
View file @
63ec7359
...
@@ -38,6 +38,10 @@ def bytes_list_feature(value):
...
@@ -38,6 +38,10 @@ def bytes_list_feature(value):
return
tf
.
train
.
Feature
(
bytes_list
=
tf
.
train
.
BytesList
(
value
=
value
))
return
tf
.
train
.
Feature
(
bytes_list
=
tf
.
train
.
BytesList
(
value
=
value
))
def
float_feature
(
value
):
return
tf
.
train
.
Feature
(
float_list
=
tf
.
train
.
FloatList
(
value
=
[
value
]))
def
float_list_feature
(
value
):
def
float_list_feature
(
value
):
return
tf
.
train
.
Feature
(
float_list
=
tf
.
train
.
FloatList
(
value
=
value
))
return
tf
.
train
.
Feature
(
float_list
=
tf
.
train
.
FloatList
(
value
=
value
))
...
...
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