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
c2b1680f
Commit
c2b1680f
authored
Oct 25, 2022
by
JingweiZhang12
Committed by
ZwwWayne
Dec 03, 2022
Browse files
add args and kwargs
parent
adb17824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmdet3d/structures/bbox_3d/base_box3d.py
mmdet3d/structures/bbox_3d/base_box3d.py
+2
-2
No files found.
mmdet3d/structures/bbox_3d/base_box3d.py
View file @
c2b1680f
...
@@ -360,7 +360,7 @@ class BaseInstance3DBoxes(object):
...
@@ -360,7 +360,7 @@ class BaseInstance3DBoxes(object):
with_yaw
=
boxes_list
[
0
].
with_yaw
)
with_yaw
=
boxes_list
[
0
].
with_yaw
)
return
cat_boxes
return
cat_boxes
def
to
(
self
,
device
):
def
to
(
self
,
device
,
*
args
,
**
kwargs
):
"""Convert current boxes to a specific device.
"""Convert current boxes to a specific device.
Args:
Args:
...
@@ -372,7 +372,7 @@ class BaseInstance3DBoxes(object):
...
@@ -372,7 +372,7 @@ class BaseInstance3DBoxes(object):
"""
"""
original_type
=
type
(
self
)
original_type
=
type
(
self
)
return
original_type
(
return
original_type
(
self
.
tensor
.
to
(
device
),
self
.
tensor
.
to
(
device
,
*
args
,
**
kwargs
),
box_dim
=
self
.
box_dim
,
box_dim
=
self
.
box_dim
,
with_yaw
=
self
.
with_yaw
)
with_yaw
=
self
.
with_yaw
)
...
...
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