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
e202822a
Commit
e202822a
authored
Jun 12, 2022
by
Scott Zhu
Committed by
A. Unique TensorFlower
Jun 12, 2022
Browse files
Fix the test failure caused by keras initializer change.
PiperOrigin-RevId: 454463130
parent
cec028b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/vision/serving/detection_test.py
official/vision/serving/detection_test.py
+4
-0
No files found.
official/vision/serving/detection_test.py
View file @
e202822a
...
@@ -29,6 +29,10 @@ from official.vision.serving import detection
...
@@ -29,6 +29,10 @@ from official.vision.serving import detection
class
DetectionExportTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
class
DetectionExportTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
def
setUp
(
self
):
super
().
setUp
()
tf
.
keras
.
utils
.
set_random_seed
(
1
)
def
_get_detection_module
(
self
,
experiment_name
,
input_type
):
def
_get_detection_module
(
self
,
experiment_name
,
input_type
):
params
=
exp_factory
.
get_exp_config
(
experiment_name
)
params
=
exp_factory
.
get_exp_config
(
experiment_name
)
params
.
task
.
model
.
backbone
.
resnet
.
model_id
=
18
params
.
task
.
model
.
backbone
.
resnet
.
model_id
=
18
...
...
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