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
OpenDAS
mmdetection3d
Commits
6d0be0a8
Commit
6d0be0a8
authored
May 09, 2020
by
zww
Browse files
fix format
parent
3cc7104d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmdet3d/datasets/pipelines/dbsampler.py
mmdet3d/datasets/pipelines/dbsampler.py
+3
-3
No files found.
mmdet3d/datasets/pipelines/dbsampler.py
View file @
6d0be0a8
...
...
@@ -433,8 +433,8 @@ class MMDataBaseSampler(DataBaseSampler):
elif
blending_op
==
'box'
:
obj_mask
=
cv2
.
blur
(
obj_mask
.
astype
(
np
.
float32
),
(
3
,
3
))
paste_mask
=
1
-
obj_mask
img
[
y1
:
y1
+
h
,
x1
:
x1
+
w
]
=
(
img
[
y1
:
y1
+
h
,
x1
:
x1
+
w
].
astype
(
np
.
float32
)
*
img
[
y1
:
y1
+
h
,
x1
:
x1
+
w
]
=
(
img
[
y1
:
y1
+
h
,
x1
:
x1
+
w
].
astype
(
np
.
float32
)
*
paste_mask
[...,
None
]).
astype
(
np
.
uint8
)
img
[
y1
:
y1
+
h
,
x1
:
x1
+
w
]
+=
(
obj_img
.
astype
(
np
.
float32
)
*
obj_mask
[...,
None
]).
astype
(
np
.
uint8
)
...
...
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