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
dc5edc38
"packaging/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "3e60fb29986ad74d9e4dc5715479d7bd3d8b59ba"
Commit
dc5edc38
authored
Dec 21, 2018
by
yhcao6
Browse files
add benchmark set, reorder parameter of custom dataset
parent
f0ecb9d5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
2 deletions
+10
-2
configs/pascal_voc/ssd300_voc.py
configs/pascal_voc/ssd300_voc.py
+1
-0
configs/pascal_voc/ssd512_voc.py
configs/pascal_voc/ssd512_voc.py
+1
-0
configs/ssd300_coco.py
configs/ssd300_coco.py
+1
-0
configs/ssd512_coco.py
configs/ssd512_coco.py
+1
-0
mmdet/datasets/custom.py
mmdet/datasets/custom.py
+2
-2
tools/train.py
tools/train.py
+4
-0
No files found.
configs/pascal_voc/ssd300_voc.py
View file @
dc5edc38
benchmark
=
True
# model settings
# model settings
input_size
=
300
input_size
=
300
model
=
dict
(
model
=
dict
(
...
...
configs/pascal_voc/ssd512_voc.py
View file @
dc5edc38
benchmark
=
True
# model settings
# model settings
input_size
=
512
input_size
=
512
model
=
dict
(
model
=
dict
(
...
...
configs/ssd300_coco.py
View file @
dc5edc38
benchmark
=
True
# model settings
# model settings
input_size
=
300
input_size
=
300
model
=
dict
(
model
=
dict
(
...
...
configs/ssd512_coco.py
View file @
dc5edc38
benchmark
=
True
# model settings
# model settings
input_size
=
512
input_size
=
512
model
=
dict
(
model
=
dict
(
...
...
mmdet/datasets/custom.py
View file @
dc5edc38
...
@@ -47,9 +47,9 @@ class CustomDataset(Dataset):
...
@@ -47,9 +47,9 @@ class CustomDataset(Dataset):
with_mask
=
True
,
with_mask
=
True
,
with_crowd
=
True
,
with_crowd
=
True
,
with_label
=
True
,
with_label
=
True
,
test_mode
=
False
,
extra_aug
=
None
,
extra_aug
=
None
,
resize_keep_ratio
=
True
):
resize_keep_ratio
=
True
,
test_mode
=
False
):
# prefix of images path
# prefix of images path
self
.
img_prefix
=
img_prefix
self
.
img_prefix
=
img_prefix
...
...
tools/train.py
View file @
dc5edc38
...
@@ -8,6 +8,7 @@ from mmdet.datasets import get_dataset
...
@@ -8,6 +8,7 @@ from mmdet.datasets import get_dataset
from
mmdet.apis
import
(
train_detector
,
init_dist
,
get_root_logger
,
from
mmdet.apis
import
(
train_detector
,
init_dist
,
get_root_logger
,
set_random_seed
)
set_random_seed
)
from
mmdet.models
import
build_detector
from
mmdet.models
import
build_detector
import
torch
def
parse_args
():
def
parse_args
():
...
@@ -42,6 +43,9 @@ def main():
...
@@ -42,6 +43,9 @@ def main():
args
=
parse_args
()
args
=
parse_args
()
cfg
=
Config
.
fromfile
(
args
.
config
)
cfg
=
Config
.
fromfile
(
args
.
config
)
# set benchmark
if
cfg
.
get
(
'benchmark'
,
False
):
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
:
cfg
.
work_dir
=
args
.
work_dir
cfg
.
work_dir
=
args
.
work_dir
...
...
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