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
b0297e64
Commit
b0297e64
authored
Oct 22, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FasterRCNN] update LR schedule
parent
98c3c7e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
examples/FasterRCNN/README.md
examples/FasterRCNN/README.md
+2
-2
examples/FasterRCNN/data.py
examples/FasterRCNN/data.py
+3
-3
examples/FasterRCNN/train.py
examples/FasterRCNN/train.py
+5
-5
No files found.
examples/FasterRCNN/README.md
View file @
b0297e64
...
@@ -39,8 +39,8 @@ To predict on an image (and show output in a window):
...
@@ -39,8 +39,8 @@ To predict on an image (and show output in a window):
## Results
## Results
+
trainval35k/minival, FASTRCNN_BATCH=256: 3
2.9
+
trainval35k/minival, FASTRCNN_BATCH=256: 3
3.4. Takes 49h on 8 TitanX.
+
trainval35k/minival, FASTRCNN_BATCH=64: 3
1.6. Takes less than one day on 8 Maxwell
TitanX.
+
trainval35k/minival, FASTRCNN_BATCH=64: 3
2.2. Takes 31h on 8
TitanX.
The hyperparameters are not carefully tuned. You can probably get better performance by e.g. training longer.
The hyperparameters are not carefully tuned. You can probably get better performance by e.g. training longer.
...
...
examples/FasterRCNN/data.py
View file @
b0297e64
...
@@ -191,9 +191,9 @@ def get_rpn_anchor_input(im, boxes, klass, is_crowd):
...
@@ -191,9 +191,9 @@ def get_rpn_anchor_input(im, boxes, klass, is_crowd):
def
read_and_augment_images
(
ds
):
def
read_and_augment_images
(
ds
):
def
mapf
(
dp
):
def
mapf
(
dp
):
fname
=
dp
[
0
]
fname
=
dp
[
0
]
im
=
cv2
.
imread
(
fname
,
cv2
.
IMREAD_COLOR
)
.
astype
(
'float32'
)
im
=
cv2
.
imread
(
fname
,
cv2
.
IMREAD_COLOR
)
assert
im
is
not
None
,
dp
[
0
]
assert
im
is
not
None
,
fname
dp
[
0
]
=
im
dp
[
0
]
=
im
.
astype
(
'float32'
)
# assume floatbox as input
# assume floatbox as input
assert
dp
[
1
]
.
dtype
==
np
.
float32
assert
dp
[
1
]
.
dtype
==
np
.
float32
...
...
examples/FasterRCNN/train.py
View file @
b0297e64
...
@@ -286,19 +286,19 @@ if __name__ == '__main__':
...
@@ -286,19 +286,19 @@ if __name__ == '__main__':
# linear warmup
# linear warmup
ScheduledHyperParamSetter
(
ScheduledHyperParamSetter
(
'learning_rate'
,
'learning_rate'
,
[(
0
,
0.003
),
(
warmup_epoch
*
factor
,
0.01
)],
interp
=
'linear'
),
[(
0
,
3e-3
),
(
warmup_epoch
*
factor
,
1e-2
)],
interp
=
'linear'
),
# step decay
# step decay
ScheduledHyperParamSetter
(
ScheduledHyperParamSetter
(
'learning_rate'
,
'learning_rate'
,
[(
warmup_epoch
*
factor
,
0.01
),
[(
warmup_epoch
*
factor
,
1e-2
),
(
1
2
0000
*
factor
//
stepnum
,
1e-3
),
(
1
5
0000
*
factor
//
stepnum
,
1e-3
),
(
18
0000
*
factor
//
stepnum
,
1e-4
)]),
(
21
0000
*
factor
//
stepnum
,
1e-4
)]),
HumanHyperParamSetter
(
'learning_rate'
),
HumanHyperParamSetter
(
'learning_rate'
),
EvalCallback
(),
EvalCallback
(),
GPUUtilizationTracker
(),
GPUUtilizationTracker
(),
],
],
steps_per_epoch
=
stepnum
,
steps_per_epoch
=
stepnum
,
max_epoch
=
2
05
000
*
factor
//
stepnum
,
max_epoch
=
2
30
000
*
factor
//
stepnum
,
session_init
=
get_model_loader
(
args
.
load
)
if
args
.
load
else
None
,
session_init
=
get_model_loader
(
args
.
load
)
if
args
.
load
else
None
,
nr_tower
=
get_nr_gpu
()
nr_tower
=
get_nr_gpu
()
)
)
...
...
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