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
2afb5a2f
"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "35ac58c7e5ceb226a7fd5a4d2e3148474accbe93"
Commit
2afb5a2f
authored
Dec 06, 2018
by
yhcao6
Browse files
format
parent
8c94b2d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmdet/datasets/__init__.py
mmdet/datasets/__init__.py
+0
-1
mmdet/datasets/utils.py
mmdet/datasets/utils.py
+2
-1
No files found.
mmdet/datasets/__init__.py
View file @
2afb5a2f
...
@@ -10,4 +10,3 @@ __all__ = [
...
@@ -10,4 +10,3 @@ __all__ = [
'build_dataloader'
,
'to_tensor'
,
'random_scale'
,
'show_ann'
,
'build_dataloader'
,
'to_tensor'
,
'random_scale'
,
'show_ann'
,
'get_dataset'
,
'ExtraAugmentation'
,
'ConcatDataset'
,
'RepeatDataset'
,
'get_dataset'
,
'ExtraAugmentation'
,
'ConcatDataset'
,
'RepeatDataset'
,
]
]
mmdet/datasets/utils.py
View file @
2afb5a2f
...
@@ -76,7 +76,8 @@ def show_ann(coco, img, ann_info):
...
@@ -76,7 +76,8 @@ def show_ann(coco, img, ann_info):
def
get_dataset
(
data_cfg
):
def
get_dataset
(
data_cfg
):
if
data_cfg
[
'type'
]
==
'RepeatDataset'
:
if
data_cfg
[
'type'
]
==
'RepeatDataset'
:
return
RepeatDataset
(
get_dataset
(
data_cfg
[
'dataset'
]),
data_cfg
[
'times'
])
return
RepeatDataset
(
get_dataset
(
data_cfg
[
'dataset'
]),
data_cfg
[
'times'
])
if
isinstance
(
data_cfg
[
'ann_file'
],
(
list
,
tuple
)):
if
isinstance
(
data_cfg
[
'ann_file'
],
(
list
,
tuple
)):
ann_files
=
data_cfg
[
'ann_file'
]
ann_files
=
data_cfg
[
'ann_file'
]
...
...
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