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
716b9d73
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "4ebfa2cb91d378ab69315b963bb28c0cfcac59fe"
Commit
716b9d73
authored
Sep 29, 2020
by
Shixin Luo
Browse files
modify default hyperparameters
parent
61961346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
official/vision/beta/configs/experiments/image_classification/imagenet_mobilenetv2_1.0_gpu.yaml
...ts/image_classification/imagenet_mobilenetv2_1.0_gpu.yaml
+3
-3
official/vision/beta/configs/image_classification.py
official/vision/beta/configs/image_classification.py
+2
-3
No files found.
official/vision/beta/configs/experiments/image_classification/imagenet_mobilenetv2_1.0_gpu.yaml
View file @
716b9d73
...
...
@@ -13,7 +13,7 @@ task:
width_multiplier
:
1.0
dropout_rate
:
0.2
losses
:
l2_weight_decay
:
0.000
1
l2_weight_decay
:
0.000
02
one_hot
:
True
label_smoothing
:
0.1
train_data
:
...
...
@@ -28,7 +28,7 @@ task:
dtype
:
'
float32'
drop_remainder
:
False
trainer
:
train_steps
:
150120
# 90 * steps_per_epoch
train_steps
:
700000
# 700K
validation_steps
:
65
validation_interval
:
1668
steps_per_loop
:
1668
# NUM_EXAMPLES (1281167) // global_batch_size
...
...
@@ -46,7 +46,7 @@ trainer:
exponential
:
initial_learning_rate
:
0.36
# 0.045 * NUM_GPUS
decay_steps
:
4170
# 2.5 * steps_per_epoch
decay_rate
:
0.9
7
decay_rate
:
0.9
8
staircase
:
True
warmup
:
type
:
'
linear'
...
...
official/vision/beta/configs/image_classification.py
View file @
716b9d73
...
...
@@ -233,7 +233,7 @@ def image_classification_imagenet_mobilenet() -> cfg.ExperimentConfig:
model_id
=
'MobileNetV2'
,
width_multiplier
=
1.0
)),
norm_activation
=
common
.
NormActivation
(
norm_momentum
=
0.9997
,
norm_epsilon
=
1e-3
)),
losses
=
Losses
(
l2_weight_decay
=
1
e-
4
,
label_smoothing
=
0.1
),
losses
=
Losses
(
l2_weight_decay
=
2
e-
5
,
label_smoothing
=
0.1
),
train_data
=
DataConfig
(
input_path
=
os
.
path
.
join
(
IMAGENET_INPUT_PATH_BASE
,
'train*'
),
is_training
=
True
,
...
...
@@ -264,8 +264,7 @@ def image_classification_imagenet_mobilenet() -> cfg.ExperimentConfig:
# 0.045 * NUM_GPUS
'initial_learning_rate'
:
0.045
*
(
train_batch_size
//
96
),
# (2.5 / NUM_GPUS) epochs
'decay_steps'
:
int
((
2.5
/
(
train_batch_size
//
96
))
*
steps_per_epoch
),
'decay_steps'
:
int
(
2.5
*
steps_per_epoch
),
'decay_rate'
:
0.98
,
'staircase'
:
True
}
...
...
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