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
2bd53cf1
"ml/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "bc108b9ad61da81a5d170e0f487b7603fbeb768f"
Commit
2bd53cf1
authored
Aug 12, 2020
by
Kaushik Shivakumar
Browse files
small mod for context
parent
d9d47174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
research/object_detection/dataset_tools/create_ava_tf_record_for_context.py
...tection/dataset_tools/create_ava_tf_record_for_context.py
+5
-2
No files found.
research/object_detection/dataset_tools/create_ava_tf_record_for_context.py
View file @
2bd53cf1
...
@@ -250,9 +250,12 @@ class Ava(object):
...
@@ -250,9 +250,12 @@ class Ava(object):
else
:
else
:
logging
.
warning
(
"Unknown label: %s"
,
row
[
"action_label"
])
logging
.
warning
(
"Unknown label: %s"
,
row
[
"action_label"
])
middle_frame_time
+=
1
middle_frame_time
+=
1
/
3
if
abs
(
middle_frame_time
-
round
(
middle_frame_time
)
<
0.0001
):
middle_frame_time
=
round
(
middle_frame_time
)
key
=
hashlib
.
sha256
(
bufstring
).
hexdigest
()
key
=
hashlib
.
sha256
(
bufstring
).
hexdigest
()
date_captured_feature
=
(
"2020-06-17 00:%02d:%02d"
%
((
middle_frame_time
-
900
)
//
60
,
(
middle_frame_time
-
900
)
%
60
))
date_captured_feature
=
(
"2020-06-17 00:%02d:%02d"
%
((
middle_frame_time
-
900
)
*
3
//
60
,
(
middle_frame_time
-
900
)
*
3
%
60
))
context_feature_dict
=
{
context_feature_dict
=
{
'image/height'
:
'image/height'
:
dataset_util
.
int64_feature
(
int
(
height
)),
dataset_util
.
int64_feature
(
int
(
height
)),
...
...
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