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
2e9c6046
Commit
2e9c6046
authored
Jul 07, 2021
by
Vighnesh Birodkar
Committed by
TF Object Detection Team
Jul 07, 2021
Browse files
Standardize CenterNet mobilenet v2 FPN with new checkpoint API.
PiperOrigin-RevId: 383469336
parent
fa038f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
research/object_detection/models/center_net_mobilenet_v2_fpn_feature_extractor.py
...n/models/center_net_mobilenet_v2_fpn_feature_extractor.py
+2
-8
No files found.
research/object_detection/models/center_net_mobilenet_v2_fpn_feature_extractor.py
View file @
2e9c6046
...
@@ -125,14 +125,8 @@ class CenterNetMobileNetV2FPNFeatureExtractor(
...
@@ -125,14 +125,8 @@ class CenterNetMobileNetV2FPNFeatureExtractor(
self
.
_base_model
.
load_weights
(
path
)
self
.
_base_model
.
load_weights
(
path
)
@
property
@
property
def
supported_sub_model_types
(
self
):
def
classification_backbone
(
self
):
return
[
'classification'
]
return
self
.
_base_model
def
get_sub_model
(
self
,
sub_model_type
):
if
sub_model_type
==
'classification'
:
return
self
.
_base_model
else
:
ValueError
(
'Sub model type "{}" not supported.'
.
format
(
sub_model_type
))
def
call
(
self
,
inputs
):
def
call
(
self
,
inputs
):
return
[
self
.
_feature_extractor_model
(
inputs
)]
return
[
self
.
_feature_extractor_model
(
inputs
)]
...
...
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