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
99a7d749
Commit
99a7d749
authored
Mar 07, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc small changes and fix #688
parent
196a17f3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
examples/FasterRCNN/README.md
examples/FasterRCNN/README.md
+1
-1
examples/FasterRCNN/config.py
examples/FasterRCNN/config.py
+1
-1
scripts/checkpoint-prof.py
scripts/checkpoint-prof.py
+1
-1
scripts/dump-model-params.py
scripts/dump-model-params.py
+1
-1
tensorpack/models/regularize.py
tensorpack/models/regularize.py
+5
-4
No files found.
examples/FasterRCNN/README.md
View file @
99a7d749
...
@@ -64,7 +64,7 @@ The two 360k models have identical configurations with
...
@@ -64,7 +64,7 @@ The two 360k models have identical configurations with
`R50-C4-2x`
configuration in
`R50-C4-2x`
configuration in
[
Detectron Model Zoo
](
https://github.com/facebookresearch/Detectron/blob/master/MODEL_ZOO.md#end-to-end-faster--mask-r-cnn-baselines
)
.
[
Detectron Model Zoo
](
https://github.com/facebookresearch/Detectron/blob/master/MODEL_ZOO.md#end-to-end-faster--mask-r-cnn-baselines
)
.
They get the __same performance__ with the official models, and are about 14% slower than the official implementation,
They get the __same performance__ with the official models, and are about 14% slower than the official implementation,
probably due to the lack of specialized ops in TensorFlow.
probably due to the lack of specialized ops
(e.g. AffineChannel, ROIAlign)
in TensorFlow.
## Notes
## Notes
...
...
examples/FasterRCNN/config.py
View file @
99a7d749
...
@@ -21,7 +21,7 @@ FREEZE_AFFINE = False # do not train affine parameters inside BN
...
@@ -21,7 +21,7 @@ FREEZE_AFFINE = False # do not train affine parameters inside BN
# schedule -----------------------
# schedule -----------------------
BASE_LR
=
1e-2
BASE_LR
=
1e-2
WARMUP
=
5
00
# in steps
WARMUP
=
10
00
# in steps
STEPS_PER_EPOCH
=
500
STEPS_PER_EPOCH
=
500
LR_SCHEDULE
=
[
150000
,
230000
,
280000
]
LR_SCHEDULE
=
[
150000
,
230000
,
280000
]
# LR_SCHEDULE = [120000, 160000, 180000] # "1x" schedule in detectron
# LR_SCHEDULE = [120000, 160000, 180000] # "1x" schedule in detectron
...
...
scripts/checkpoint-prof.py
View file @
99a7d749
...
@@ -21,7 +21,7 @@ if __name__ == '__main__':
...
@@ -21,7 +21,7 @@ if __name__ == '__main__':
parser
.
add_argument
(
'--print-timing'
,
action
=
'store_true'
)
parser
.
add_argument
(
'--print-timing'
,
action
=
'store_true'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
tf
.
train
.
import_meta_graph
(
args
.
meta
)
tf
.
train
.
import_meta_graph
(
args
.
meta
,
clear_devices
=
True
)
G
=
tf
.
get_default_graph
()
G
=
tf
.
get_default_graph
()
with
tf
.
Session
(
config
=
get_default_sess_config
())
as
sess
:
with
tf
.
Session
(
config
=
get_default_sess_config
())
as
sess
:
init
=
get_model_loader
(
args
.
model
)
init
=
get_model_loader
(
args
.
model
)
...
...
scripts/dump-model-params.py
View file @
99a7d749
...
@@ -17,7 +17,7 @@ if __name__ == '__main__':
...
@@ -17,7 +17,7 @@ if __name__ == '__main__':
parser
.
add_argument
(
dest
=
'output'
,
help
=
'output model file, can be npz or TF checkpoint'
)
parser
.
add_argument
(
dest
=
'output'
,
help
=
'output model file, can be npz or TF checkpoint'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
tf
.
train
.
import_meta_graph
(
args
.
meta
)
tf
.
train
.
import_meta_graph
(
args
.
meta
,
clear_devices
=
True
)
# loading...
# loading...
init
=
get_model_loader
(
args
.
input
)
init
=
get_model_loader
(
args
.
input
)
...
...
tensorpack/models/regularize.py
View file @
99a7d749
...
@@ -125,8 +125,9 @@ def Dropout(x, *args, **kwargs):
...
@@ -125,8 +125,9 @@ def Dropout(x, *args, **kwargs):
if
'is_training'
in
kwargs
:
if
'is_training'
in
kwargs
:
kwargs
[
'training'
]
=
kwargs
.
pop
(
'is_training'
)
kwargs
[
'training'
]
=
kwargs
.
pop
(
'is_training'
)
if
len
(
args
)
>
0
:
if
len
(
args
)
>
0
:
if
args
[
0
]
!=
0.5
:
logger
.
warn
(
logger
.
warn
(
"The first positional argument to tensorpack.Dropout is the probability to keep
rather than to drop. "
"The first positional argument to tensorpack.Dropout is the probability to keep,
rather than to drop. "
"This is different from the rate argument in tf.layers.Dropout due to historical reasons. "
"This is different from the rate argument in tf.layers.Dropout due to historical reasons. "
"To mimic tf.layers.Dropout, explicitly use keyword argument 'rate' instead"
)
"To mimic tf.layers.Dropout, explicitly use keyword argument 'rate' instead"
)
rate
=
1
-
args
[
0
]
rate
=
1
-
args
[
0
]
...
...
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