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
726f9757
Commit
726f9757
authored
Jun 13, 2020
by
liyinhao
Browse files
change docstrings
parent
1602973f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
data/scannet/scannet_utils.py
data/scannet/scannet_utils.py
+2
-1
data/sunrgbd/matlab/extract_split.m
data/sunrgbd/matlab/extract_split.m
+3
-4
data/sunrgbd/sunrgbd_utils.py
data/sunrgbd/sunrgbd_utils.py
+17
-2
No files found.
data/scannet/scannet_utils.py
View file @
726f9757
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
#
#
# This source code is licensed under the MIT license found in the
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# LICENSE file in the root directory of this source tree.
''' Ref: https://github.com/ScanNet/ScanNet/blob/master/BenchmarkScripts '''
"""Ref: https://github.com/ScanNet/ScanNet/blob/master/BenchmarkScripts
"""
import
csv
import
csv
import
os
import
os
...
...
data/sunrgbd/matlab/extract_split.m
View file @
726f9757
% Copyright (c) Facebook, Inc. and its affiliates.
% Modified from
%
% https://github.com/facebookresearch/votenet/blob/master/sunrgbd/matlab/extract_split.m
% This source code is licensed under the MIT license found in the
% Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
% LICENSE file in the root directory of this source tree.
%% Dump train/val split.
%% Dump train/val split.
% Author: Charles R. Qi
% Author: Charles R. Qi
...
...
data/sunrgbd/sunrgbd_utils.py
View file @
726f9757
...
@@ -167,14 +167,29 @@ class SUNRGBD_Calibration(object):
...
@@ -167,14 +167,29 @@ class SUNRGBD_Calibration(object):
def
rotz
(
t
):
def
rotz
(
t
):
"""Rotation about the z-axis."""
"""Rotation about the z-axis.
Args:
t(float): Heading angle.
Returns:
ndarray: Transforation matrix
"""
c
=
np
.
cos
(
t
)
c
=
np
.
cos
(
t
)
s
=
np
.
sin
(
t
)
s
=
np
.
sin
(
t
)
return
np
.
array
([[
c
,
-
s
,
0
],
[
s
,
c
,
0
],
[
0
,
0
,
1
]])
return
np
.
array
([[
c
,
-
s
,
0
],
[
s
,
c
,
0
],
[
0
,
0
,
1
]])
def
transform_from_rot_trans
(
R
,
t
):
def
transform_from_rot_trans
(
R
,
t
):
"""Transforation matrix from rotation matrix and translation vector."""
"""Transforation matrix from rotation matrix and translation vector.
Args:
R(ndarray): Rotation matrix.
t(ndarray): Translation vector.
Returns:
ndarray: Transforation matrix.
"""
R
=
R
.
reshape
(
3
,
3
)
R
=
R
.
reshape
(
3
,
3
)
t
=
t
.
reshape
(
3
,
1
)
t
=
t
.
reshape
(
3
,
1
)
return
np
.
vstack
((
np
.
hstack
([
R
,
t
]),
[
0
,
0
,
0
,
1
]))
return
np
.
vstack
((
np
.
hstack
([
R
,
t
]),
[
0
,
0
,
0
,
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