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
e7957b7f
Unverified
Commit
e7957b7f
authored
Jun 11, 2018
by
Taylor Robie
Committed by
GitHub
Jun 11, 2018
Browse files
fix resnet lr comment (#4486)
* fix comment * align comment
parent
9057a3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+3
-1
No files found.
official/resnet/resnet_run_loop.py
View file @
e7957b7f
...
...
@@ -158,7 +158,9 @@ def learning_rate_with_decay(
initial_learning_rate
=
0.1
*
batch_size
/
batch_denom
batches_per_epoch
=
num_images
/
batch_size
# Multiply the learning rate by 0.1 at 100, 150, and 200 epochs.
# Reduce the learning rate at certain epochs.
# CIFAR-10: divide by 10 at epoch 100, 150, and 200
# ImageNet: divide by 10 at epoch 30, 60, 80, and 90
boundaries
=
[
int
(
batches_per_epoch
*
epoch
)
for
epoch
in
boundary_epochs
]
vals
=
[
initial_learning_rate
*
decay
for
decay
in
decay_rates
]
...
...
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