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
1538da90
"driver/vscode:/vscode.git/clone" did not exist on "e2b4c5b469db934af4b8b81d860df56be69764ce"
Commit
1538da90
authored
Jun 29, 2020
by
syiming
Browse files
modify feature extractor name
parent
aef04705
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor_tf2_test.py
...er_rcnn_resnet_v1_fpn_keras_feature_extractor_tf2_test.py
+2
-2
No files found.
research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor_tf2_test.py
View file @
1538da90
...
@@ -26,7 +26,7 @@ from object_detection.protos import hyperparams_pb2
...
@@ -26,7 +26,7 @@ from object_detection.protos import hyperparams_pb2
@
unittest
.
skipIf
(
tf_version
.
is_tf1
(),
'Skipping TF2.X only test.'
)
@
unittest
.
skipIf
(
tf_version
.
is_tf1
(),
'Skipping TF2.X only test.'
)
class
FasterRCNNResnetV1F
PN
KerasFeatureExtractorTest
(
tf
.
test
.
TestCase
):
class
FasterRCNNResnetV1F
pn
KerasFeatureExtractorTest
(
tf
.
test
.
TestCase
):
def
_build_conv_hyperparams
(
self
):
def
_build_conv_hyperparams
(
self
):
conv_hyperparams
=
hyperparams_pb2
.
Hyperparams
()
conv_hyperparams
=
hyperparams_pb2
.
Hyperparams
()
...
@@ -44,7 +44,7 @@ class FasterRCNNResnetV1FPNKerasFeatureExtractorTest(tf.test.TestCase):
...
@@ -44,7 +44,7 @@ class FasterRCNNResnetV1FPNKerasFeatureExtractorTest(tf.test.TestCase):
return
hyperparams_builder
.
KerasLayerHyperparams
(
conv_hyperparams
)
return
hyperparams_builder
.
KerasLayerHyperparams
(
conv_hyperparams
)
def
_build_feature_extractor
(
self
):
def
_build_feature_extractor
(
self
):
return
frcnn_res_fpn
.
FasterRCNNResnet50F
PN
KerasFeatureExtractor
(
return
frcnn_res_fpn
.
FasterRCNNResnet50F
pn
KerasFeatureExtractor
(
is_training
=
False
,
is_training
=
False
,
conv_hyperparams
=
self
.
_build_conv_hyperparams
(),
conv_hyperparams
=
self
.
_build_conv_hyperparams
(),
first_stage_features_stride
=
16
,
first_stage_features_stride
=
16
,
...
...
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