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
0432d2e1
Commit
0432d2e1
authored
Oct 02, 2020
by
Zhenyu Tan
Committed by
A. Unique TensorFlower
Oct 02, 2020
Browse files
Internal Cleanup.
PiperOrigin-RevId: 335066419
parent
7264d437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
official/vision/beta/configs/retinanet.py
official/vision/beta/configs/retinanet.py
+5
-0
No files found.
official/vision/beta/configs/retinanet.py
View file @
0432d2e1
...
@@ -128,6 +128,7 @@ class RetinaNetTask(cfg.TaskConfig):
...
@@ -128,6 +128,7 @@ class RetinaNetTask(cfg.TaskConfig):
losses
:
Losses
=
Losses
()
losses
:
Losses
=
Losses
()
init_checkpoint
:
Optional
[
str
]
=
None
init_checkpoint
:
Optional
[
str
]
=
None
init_checkpoint_modules
:
str
=
'all'
# all or backbone
init_checkpoint_modules
:
str
=
'all'
# all or backbone
annotation_file
:
Optional
[
str
]
=
None
gradient_clip_norm
:
float
=
0.0
gradient_clip_norm
:
float
=
0.0
per_category_metrics
=
False
per_category_metrics
=
False
...
@@ -160,6 +161,8 @@ def retinanet_resnetfpn_coco() -> cfg.ExperimentConfig:
...
@@ -160,6 +161,8 @@ def retinanet_resnetfpn_coco() -> cfg.ExperimentConfig:
task
=
RetinaNetTask
(
task
=
RetinaNetTask
(
init_checkpoint
=
'gs://cloud-tpu-checkpoints/vision-2.0/resnet50_imagenet/ckpt-28080'
,
init_checkpoint
=
'gs://cloud-tpu-checkpoints/vision-2.0/resnet50_imagenet/ckpt-28080'
,
init_checkpoint_modules
=
'backbone'
,
init_checkpoint_modules
=
'backbone'
,
annotation_file
=
os
.
path
.
join
(
COCO_INPUT_PATH_BASE
,
'instances_val2017.json'
),
model
=
RetinaNet
(
model
=
RetinaNet
(
num_classes
=
91
,
num_classes
=
91
,
input_size
=
[
640
,
640
,
3
],
input_size
=
[
640
,
640
,
3
],
...
@@ -230,6 +233,8 @@ def retinanet_spinenet_coco() -> cfg.ExperimentConfig:
...
@@ -230,6 +233,8 @@ def retinanet_spinenet_coco() -> cfg.ExperimentConfig:
config
=
cfg
.
ExperimentConfig
(
config
=
cfg
.
ExperimentConfig
(
runtime
=
cfg
.
RuntimeConfig
(
mixed_precision_dtype
=
'float32'
),
runtime
=
cfg
.
RuntimeConfig
(
mixed_precision_dtype
=
'float32'
),
task
=
RetinaNetTask
(
task
=
RetinaNetTask
(
annotation_file
=
os
.
path
.
join
(
COCO_INPUT_PATH_BASE
,
'instances_val2017.json'
),
model
=
RetinaNet
(
model
=
RetinaNet
(
backbone
=
backbones
.
Backbone
(
backbone
=
backbones
.
Backbone
(
type
=
'spinenet'
,
type
=
'spinenet'
,
...
...
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