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
739a7f32
Commit
739a7f32
authored
Aug 04, 2020
by
Vivek Rathod
Committed by
TF Object Detection Team
Aug 04, 2020
Browse files
Set temporal_embedding to None when `data_captured` isn't available.
PiperOrigin-RevId: 324848229
parent
2db4cc8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py
...ion/dataset_tools/context_rcnn/generate_embedding_data.py
+1
-1
No files found.
research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py
View file @
739a7f32
...
@@ -184,7 +184,7 @@ class GenerateEmbeddingDataFn(beam.DoFn):
...
@@ -184,7 +184,7 @@ class GenerateEmbeddingDataFn(beam.DoFn):
[
unix_time
])
[
unix_time
])
temporal_embedding
=
embed_date_captured
(
date_captured
)
temporal_embedding
=
embed_date_captured
(
date_captured
)
except
Exception
:
# pylint: disable=broad-except
except
Exception
:
# pylint: disable=broad-except
pass
temporal_embedding
=
None
detections
=
self
.
_detect_fn
.
signatures
[
'serving_default'
](
detections
=
self
.
_detect_fn
.
signatures
[
'serving_default'
](
(
tf
.
expand_dims
(
tf
.
convert_to_tensor
(
tfexample
),
0
)))
(
tf
.
expand_dims
(
tf
.
convert_to_tensor
(
tfexample
),
0
)))
...
...
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