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
0a7fb9c7
Unverified
Commit
0a7fb9c7
authored
Jan 22, 2021
by
filaPro
Committed by
GitHub
Jan 22, 2021
Browse files
Fix issues woth inplace modification of tensors in BaseInstance3DBoxes (#283)
parent
f4727874
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmdet3d/core/bbox/structures/base_box3d.py
mmdet3d/core/bbox/structures/base_box3d.py
+1
-1
mmdet3d/core/bbox/structures/cam_box3d.py
mmdet3d/core/bbox/structures/cam_box3d.py
+1
-1
No files found.
mmdet3d/core/bbox/structures/base_box3d.py
View file @
0a7fb9c7
...
...
@@ -57,7 +57,7 @@ class BaseInstance3DBoxes(object):
else
:
self
.
box_dim
=
box_dim
self
.
with_yaw
=
with_yaw
self
.
tensor
=
tensor
self
.
tensor
=
tensor
.
clone
()
if
origin
!=
(
0.5
,
0.5
,
0
):
dst
=
self
.
tensor
.
new_tensor
((
0.5
,
0.5
,
0
))
...
...
mmdet3d/core/bbox/structures/cam_box3d.py
View file @
0a7fb9c7
...
...
@@ -63,7 +63,7 @@ class CameraInstance3DBoxes(BaseInstance3DBoxes):
else
:
self
.
box_dim
=
box_dim
self
.
with_yaw
=
with_yaw
self
.
tensor
=
tensor
self
.
tensor
=
tensor
.
clone
()
if
origin
!=
(
0.5
,
1.0
,
0.5
):
dst
=
self
.
tensor
.
new_tensor
((
0.5
,
1.0
,
0.5
))
...
...
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