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
SOLOv2-pytorch
Commits
490b6ca5
Commit
490b6ca5
authored
Dec 22, 2018
by
yhcao6
Browse files
rename benchmark to cudnn_benchmark
parent
dc5edc38
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
6 deletions
+9
-6
configs/pascal_voc/ssd300_voc.py
configs/pascal_voc/ssd300_voc.py
+1
-1
configs/pascal_voc/ssd512_voc.py
configs/pascal_voc/ssd512_voc.py
+1
-1
configs/ssd300_coco.py
configs/ssd300_coco.py
+1
-1
configs/ssd512_coco.py
configs/ssd512_coco.py
+1
-1
tools/test.py
tools/test.py
+3
-0
tools/train.py
tools/train.py
+2
-2
No files found.
configs/pascal_voc/ssd300_voc.py
View file @
490b6ca5
benchmark
=
True
# model settings
# model settings
input_size
=
300
input_size
=
300
model
=
dict
(
model
=
dict
(
...
@@ -24,6 +23,7 @@ model = dict(
...
@@ -24,6 +23,7 @@ model = dict(
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
cudnn_benchmark
=
True
train_cfg
=
dict
(
train_cfg
=
dict
(
assigner
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
type
=
'MaxIoUAssigner'
,
...
...
configs/pascal_voc/ssd512_voc.py
View file @
490b6ca5
benchmark
=
True
# model settings
# model settings
input_size
=
512
input_size
=
512
model
=
dict
(
model
=
dict
(
...
@@ -24,6 +23,7 @@ model = dict(
...
@@ -24,6 +23,7 @@ model = dict(
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
cudnn_benchmark
=
True
train_cfg
=
dict
(
train_cfg
=
dict
(
assigner
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
type
=
'MaxIoUAssigner'
,
...
...
configs/ssd300_coco.py
View file @
490b6ca5
benchmark
=
True
# model settings
# model settings
input_size
=
300
input_size
=
300
model
=
dict
(
model
=
dict
(
...
@@ -24,6 +23,7 @@ model = dict(
...
@@ -24,6 +23,7 @@ model = dict(
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
cudnn_benchmark
=
True
train_cfg
=
dict
(
train_cfg
=
dict
(
assigner
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
type
=
'MaxIoUAssigner'
,
...
...
configs/ssd512_coco.py
View file @
490b6ca5
benchmark
=
True
# model settings
# model settings
input_size
=
512
input_size
=
512
model
=
dict
(
model
=
dict
(
...
@@ -24,6 +23,7 @@ model = dict(
...
@@ -24,6 +23,7 @@ model = dict(
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
anchor_ratios
=
([
2
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
,
3
],
[
2
],
[
2
]),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_means
=
(.
0
,
.
0
,
.
0
,
.
0
),
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
target_stds
=
(
0.1
,
0.1
,
0.2
,
0.2
)))
cudnn_benchmark
=
True
train_cfg
=
dict
(
train_cfg
=
dict
(
assigner
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
type
=
'MaxIoUAssigner'
,
...
...
tools/test.py
View file @
490b6ca5
...
@@ -66,6 +66,9 @@ def main():
...
@@ -66,6 +66,9 @@ def main():
raise
ValueError
(
'The output file must be a pkl file.'
)
raise
ValueError
(
'The output file must be a pkl file.'
)
cfg
=
mmcv
.
Config
.
fromfile
(
args
.
config
)
cfg
=
mmcv
.
Config
.
fromfile
(
args
.
config
)
# set cudnn_benchmark
if
cfg
.
get
(
'cudnn_benchmark'
,
False
):
torch
.
backends
.
cudnn
.
benchmark
=
True
cfg
.
model
.
pretrained
=
None
cfg
.
model
.
pretrained
=
None
cfg
.
data
.
test
.
test_mode
=
True
cfg
.
data
.
test
.
test_mode
=
True
...
...
tools/train.py
View file @
490b6ca5
...
@@ -43,8 +43,8 @@ def main():
...
@@ -43,8 +43,8 @@ def main():
args
=
parse_args
()
args
=
parse_args
()
cfg
=
Config
.
fromfile
(
args
.
config
)
cfg
=
Config
.
fromfile
(
args
.
config
)
# set benchmark
# set
cudnn_
benchmark
if
cfg
.
get
(
'benchmark'
,
False
):
if
cfg
.
get
(
'
cudnn_
benchmark'
,
False
):
torch
.
backends
.
cudnn
.
benchmark
=
True
torch
.
backends
.
cudnn
.
benchmark
=
True
# update configs according to CLI args
# update configs according to CLI args
if
args
.
work_dir
is
not
None
:
if
args
.
work_dir
is
not
None
:
...
...
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