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
420c91e9
Commit
420c91e9
authored
Oct 16, 2018
by
Kai Chen
Browse files
Merge branch 'master' of github.com:open-mmlab/mmdetection
parents
251c4290
3ad05dc8
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 @
420c91e9
...
@@ -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