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
e2227ddb
Unverified
Commit
e2227ddb
authored
Jan 31, 2019
by
Kai Chen
Committed by
GitHub
Jan 31, 2019
Browse files
Merge pull request #301 from AresGao/master
fix a little bug in coco datasets loader
parents
893c4108
d268e93d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/datasets/coco.py
mmdet/datasets/coco.py
+1
-1
No files found.
mmdet/datasets/coco.py
View file @
e2227ddb
...
@@ -40,7 +40,7 @@ class CocoDataset(CustomDataset):
...
@@ -40,7 +40,7 @@ class CocoDataset(CustomDataset):
img_id
=
self
.
img_infos
[
idx
][
'id'
]
img_id
=
self
.
img_infos
[
idx
][
'id'
]
ann_ids
=
self
.
coco
.
getAnnIds
(
imgIds
=
[
img_id
])
ann_ids
=
self
.
coco
.
getAnnIds
(
imgIds
=
[
img_id
])
ann_info
=
self
.
coco
.
loadAnns
(
ann_ids
)
ann_info
=
self
.
coco
.
loadAnns
(
ann_ids
)
return
self
.
_parse_ann_info
(
ann_info
)
return
self
.
_parse_ann_info
(
ann_info
,
self
.
with_mask
)
def
_filter_imgs
(
self
,
min_size
=
32
):
def
_filter_imgs
(
self
,
min_size
=
32
):
"""Filter images too small or without ground truths."""
"""Filter images too small or without ground truths."""
...
...
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