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
19f7461c
"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "ba01560f21516805fc5ceba5c2566dcbd1cf66d8"
Unverified
Commit
19f7461c
authored
Jan 19, 2022
by
ChaimZhu
Committed by
GitHub
Jan 19, 2022
Browse files
fix axis=0 rotation in master branch (#1182)
parent
c8c5e1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmdet3d/core/points/base_points.py
mmdet3d/core/points/base_points.py
+3
-3
No files found.
mmdet3d/core/points/base_points.py
View file @
19f7461c
...
@@ -165,9 +165,9 @@ class BasePoints(object):
...
@@ -165,9 +165,9 @@ class BasePoints(object):
[
rot_sin
,
rot_cos
,
0
],
[
rot_sin
,
rot_cos
,
0
],
[
0
,
0
,
1
]])
[
0
,
0
,
1
]])
elif
axis
==
0
:
elif
axis
==
0
:
rot_mat_T
=
rotation
.
new_tensor
([[
0
,
rot_cos
,
-
rot_sin
],
rot_mat_T
=
rotation
.
new_tensor
([[
1
,
0
,
0
],
[
0
,
rot_
sin
,
rot_
cos
],
[
0
,
rot_
cos
,
-
rot_
sin
],
[
1
,
0
,
0
]])
[
0
,
rot_sin
,
rot_cos
]])
else
:
else
:
raise
ValueError
(
'axis should in range'
)
raise
ValueError
(
'axis should in range'
)
rot_mat_T
=
rot_mat_T
.
T
rot_mat_T
=
rot_mat_T
.
T
...
...
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