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
ad942e22
"...git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "2d99fee29efac7fcd09f679ed6f7f3379eaac512"
Commit
ad942e22
authored
Aug 10, 2020
by
Kaushik Shivakumar
Browse files
fix line length
parent
811f3940
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
research/object_detection/exporter_lib_tf2_test.py
research/object_detection/exporter_lib_tf2_test.py
+5
-3
No files found.
research/object_detection/exporter_lib_tf2_test.py
View file @
ad942e22
...
@@ -237,10 +237,12 @@ class ExportInferenceGraphTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -237,10 +237,12 @@ class ExportInferenceGraphTest(tf.test.TestCase, parameterized.TestCase):
side_input_2
=
np
.
ones
((
2
,
2
),
dtype
=
np
.
uint8
)
side_input_2
=
np
.
ones
((
2
,
2
),
dtype
=
np
.
uint8
)
if
(
use_default_serving
):
if
(
use_default_serving
):
detections
=
detect_fn_sig
(
input_tensor
=
image
,
detections
=
detect_fn_sig
(
input_tensor
=
image
,
side_inp_1
=
tf
.
constant
(
side_input_1
),
side_inp_1
=
tf
.
constant
(
side_input_1
),
side_inp_2
=
tf
.
constant
(
side_input_2
))
side_inp_2
=
tf
.
constant
(
side_input_2
))
else
:
else
:
detections
=
detect_fn
(
image
,
tf
.
constant
(
side_input_1
),
tf
.
constant
(
side_input_2
))
detections
=
detect_fn
(
image
,
tf
.
constant
(
side_input_1
),
tf
.
constant
(
side_input_2
))
detection_fields
=
fields
.
DetectionResultFields
detection_fields
=
fields
.
DetectionResultFields
self
.
assertAllClose
(
detections
[
detection_fields
.
detection_boxes
],
self
.
assertAllClose
(
detections
[
detection_fields
.
detection_boxes
],
...
...
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