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
5c2e68bb
Commit
5c2e68bb
authored
Aug 06, 2019
by
simon wu
Committed by
Kai Chen
Aug 06, 2019
Browse files
Support different type of dataset for training (#1133)
parent
8f7507eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mmdet/datasets/builder.py
mmdet/datasets/builder.py
+3
-1
No files found.
mmdet/datasets/builder.py
View file @
5c2e68bb
...
@@ -28,7 +28,9 @@ def _concat_dataset(cfg, default_args=None):
...
@@ -28,7 +28,9 @@ def _concat_dataset(cfg, default_args=None):
def
build_dataset
(
cfg
,
default_args
=
None
):
def
build_dataset
(
cfg
,
default_args
=
None
):
if
cfg
[
'type'
]
==
'RepeatDataset'
:
if
isinstance
(
cfg
,
(
list
,
tuple
)):
dataset
=
ConcatDataset
([
build_dataset
(
c
,
default_args
)
for
c
in
cfg
])
elif
cfg
[
'type'
]
==
'RepeatDataset'
:
dataset
=
RepeatDataset
(
dataset
=
RepeatDataset
(
build_dataset
(
cfg
[
'dataset'
],
default_args
),
cfg
[
'times'
])
build_dataset
(
cfg
[
'dataset'
],
default_args
),
cfg
[
'times'
])
elif
isinstance
(
cfg
[
'ann_file'
],
(
list
,
tuple
)):
elif
isinstance
(
cfg
[
'ann_file'
],
(
list
,
tuple
)):
...
...
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