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
381f4917
Commit
381f4917
authored
Aug 24, 2019
by
Cao Yuhang
Committed by
Kai Chen
Aug 24, 2019
Browse files
fix expand mutable operation (#1249)
parent
0d5233a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/datasets/pipelines/transforms.py
mmdet/datasets/pipelines/transforms.py
+1
-1
No files found.
mmdet/datasets/pipelines/transforms.py
View file @
381f4917
...
@@ -527,7 +527,7 @@ class Expand(object):
...
@@ -527,7 +527,7 @@ class Expand(object):
left
=
int
(
random
.
uniform
(
0
,
w
*
ratio
-
w
))
left
=
int
(
random
.
uniform
(
0
,
w
*
ratio
-
w
))
top
=
int
(
random
.
uniform
(
0
,
h
*
ratio
-
h
))
top
=
int
(
random
.
uniform
(
0
,
h
*
ratio
-
h
))
expand_img
[
top
:
top
+
h
,
left
:
left
+
w
]
=
img
expand_img
[
top
:
top
+
h
,
left
:
left
+
w
]
=
img
boxes
+
=
np
.
tile
((
left
,
top
),
2
)
boxes
=
boxes
+
np
.
tile
((
left
,
top
),
2
)
results
[
'img'
]
=
expand_img
results
[
'img'
]
=
expand_img
results
[
'gt_bboxes'
]
=
boxes
results
[
'gt_bboxes'
]
=
boxes
...
...
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