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
3ad05dc8
Unverified
Commit
3ad05dc8
authored
Oct 16, 2018
by
Kai Chen
Committed by
GitHub
Oct 16, 2018
Browse files
Merge pull request #31 from myownskyW7/master
bug fix in coco dataset
parents
3d790bcb
9bdb82ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mmdet/datasets/coco.py
mmdet/datasets/coco.py
+2
-0
No files found.
mmdet/datasets/coco.py
View file @
3ad05dc8
...
@@ -280,6 +280,8 @@ class CocoDataset(Dataset):
...
@@ -280,6 +280,8 @@ class CocoDataset(Dataset):
raise
AssertionError
(
raise
AssertionError
(
'proposals should have shapes (n, 4) or (n, 5), '
'proposals should have shapes (n, 4) or (n, 5), '
'but found {}'
.
format
(
proposal
.
shape
))
'but found {}'
.
format
(
proposal
.
shape
))
else
:
proposal
=
None
def
prepare_single
(
img
,
scale
,
flip
,
proposal
=
None
):
def
prepare_single
(
img
,
scale
,
flip
,
proposal
=
None
):
_img
,
img_shape
,
pad_shape
,
scale_factor
=
self
.
img_transform
(
_img
,
img_shape
,
pad_shape
,
scale_factor
=
self
.
img_transform
(
...
...
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