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
ac55f024
Commit
ac55f024
authored
Mar 23, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 436761233
parent
b12db2db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
official/projects/backbone_reuse/README.md
official/projects/backbone_reuse/README.md
+5
-0
official/vision/configs/maskrcnn.py
official/vision/configs/maskrcnn.py
+4
-0
official/vision/tasks/maskrcnn.py
official/vision/tasks/maskrcnn.py
+5
-0
No files found.
official/projects/backbone_reuse/README.md
0 → 100644
View file @
ac55f024
# Proper Reuse of Image Classification Features Improves Object Detection
Coming soon
1.
CVPR 2022 paper
2.
Table of results
\ No newline at end of file
official/vision/configs/maskrcnn.py
View file @
ac55f024
...
@@ -214,6 +214,10 @@ class MaskRCNNTask(cfg.TaskConfig):
...
@@ -214,6 +214,10 @@ class MaskRCNNTask(cfg.TaskConfig):
# If set, the Waymo Open Dataset evaluator would be used.
# If set, the Waymo Open Dataset evaluator would be used.
use_wod_metrics
:
bool
=
False
use_wod_metrics
:
bool
=
False
# If set, freezes the backbone during training.
# TODO(crisnv) Add paper link when available.
freeze_backbone
:
bool
=
False
COCO_INPUT_PATH_BASE
=
'coco'
COCO_INPUT_PATH_BASE
=
'coco'
...
...
official/vision/tasks/maskrcnn.py
View file @
ac55f024
...
@@ -82,10 +82,15 @@ class MaskRCNNTask(base_task.Task):
...
@@ -82,10 +82,15 @@ class MaskRCNNTask(base_task.Task):
input_specs
=
input_specs
,
input_specs
=
input_specs
,
model_config
=
self
.
task_config
.
model
,
model_config
=
self
.
task_config
.
model
,
l2_regularizer
=
l2_regularizer
)
l2_regularizer
=
l2_regularizer
)
if
self
.
task_config
.
freeze_backbone
:
model
.
backbone
.
trainable
=
False
return
model
return
model
def
initialize
(
self
,
model
:
tf
.
keras
.
Model
):
def
initialize
(
self
,
model
:
tf
.
keras
.
Model
):
"""Loading pretrained checkpoint."""
"""Loading pretrained checkpoint."""
if
not
self
.
task_config
.
init_checkpoint
:
if
not
self
.
task_config
.
init_checkpoint
:
return
return
...
...
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