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
106ad0d6
"vscode:/vscode.git/clone" did not exist on "1faf57b29f263834712e90ebdafa80741f6f2829"
Commit
106ad0d6
authored
May 09, 2020
by
liyinhao
Browse files
change T
parent
957e5bd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mmdet3d/datasets/pipelines/indoor_augment.py
mmdet3d/datasets/pipelines/indoor_augment.py
+8
-8
No files found.
mmdet3d/datasets/pipelines/indoor_augment.py
View file @
106ad0d6
...
...
@@ -167,19 +167,19 @@ class IndoorGlobalRotScale(object):
rotated_boxes (ndarry): 3D boxes after rotation.
"""
centers
,
lengths
=
input_boxes
[:,
0
:
3
],
input_boxes
[:,
3
:
6
]
new_centers
=
np
.
dot
(
centers
,
np
.
transpose
(
rot_mat
)
)
new_centers
=
np
.
dot
(
centers
,
rot_mat
.
T
)
dx
,
dy
=
lengths
[:,
0
]
/
2.0
,
lengths
[:,
1
]
/
2.0
new_x
=
np
.
zeros
((
dx
.
shape
[
0
],
4
))
new_y
=
np
.
zeros
((
dx
.
shape
[
0
],
4
))
for
i
,
crnr
in
enumerate
([(
-
1
,
-
1
),
(
1
,
-
1
),
(
1
,
1
),
(
-
1
,
1
)]):
crnrs
=
np
.
zeros
((
dx
.
shape
[
0
],
3
))
crnrs
[:,
0
]
=
crnr
[
0
]
*
dx
crnrs
[:,
1
]
=
crnr
[
1
]
*
dy
crnrs
=
np
.
dot
(
crnrs
,
np
.
transpose
(
rot_mat
)
)
new_x
[:,
i
]
=
crnrs
[:,
0
]
new_y
[:,
i
]
=
crnrs
[:,
1
]
for
i
,
c
o
rn
e
r
in
enumerate
([(
-
1
,
-
1
),
(
1
,
-
1
),
(
1
,
1
),
(
-
1
,
1
)]):
c
o
rn
e
rs
=
np
.
zeros
((
dx
.
shape
[
0
],
3
))
c
o
rn
e
rs
[:,
0
]
=
c
o
rn
e
r
[
0
]
*
dx
c
o
rn
e
rs
[:,
1
]
=
c
o
rn
e
r
[
1
]
*
dy
c
o
rn
e
rs
=
np
.
dot
(
c
o
rn
e
rs
,
rot_mat
.
T
)
new_x
[:,
i
]
=
c
o
rn
e
rs
[:,
0
]
new_y
[:,
i
]
=
c
o
rn
e
rs
[:,
1
]
new_dx
=
2.0
*
np
.
max
(
new_x
,
1
)
new_dy
=
2.0
*
np
.
max
(
new_y
,
1
)
...
...
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