Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
ebd7332d
Commit
ebd7332d
authored
Jul 04, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ResNet] Correct learning rate for batch<256
parent
49ab85e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
examples/ResNet/imagenet-resnet.py
examples/ResNet/imagenet-resnet.py
+4
-3
No files found.
examples/ResNet/imagenet-resnet.py
View file @
ebd7332d
...
...
@@ -77,7 +77,8 @@ def get_config(model, fake=False):
ModelSaver
(),
EstimatedTimeLeft
(),
ScheduledHyperParamSetter
(
'learning_rate'
,
[(
30
,
BASE_LR
*
1e-1
),
(
60
,
BASE_LR
*
1e-2
),
'learning_rate'
,
[
(
0
,
min
(
START_LR
,
BASE_LR
)),
(
30
,
BASE_LR
*
1e-1
),
(
60
,
BASE_LR
*
1e-2
),
(
90
,
BASE_LR
*
1e-3
),
(
100
,
BASE_LR
*
1e-4
)]),
]
if
BASE_LR
>
START_LR
:
...
...
@@ -138,7 +139,7 @@ if __name__ == '__main__':
logger
.
set_logger_dir
(
os
.
path
.
join
(
'train_log'
,
'tmp'
),
'd'
)
else
:
logger
.
set_logger_dir
(
os
.
path
.
join
(
'train_log'
,
'imagenet-{}-d{}
'
.
format
(
args
.
mode
,
args
.
dept
h
)))
os
.
path
.
join
(
'train_log'
,
'imagenet-{}-d{}
-batch{}'
.
format
(
args
.
mode
,
args
.
depth
,
args
.
batc
h
)))
config
=
get_config
(
model
,
fake
=
args
.
fake
)
if
args
.
load
:
...
...
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