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
OpenPCDet
Commits
59ed7304
"git@developer.sourcefind.cn:OpenDAS/dcnv3.git" did not exist on "67ec718805d9648e280a94e323191a3bb7594a54"
Commit
59ed7304
authored
Nov 04, 2021
by
acivgin1
Browse files
coords need to be contiguous
parent
19de178d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pcdet/models/roi_heads/partA2_head.py
pcdet/models/roi_heads/partA2_head.py
+1
-1
No files found.
pcdet/models/roi_heads/partA2_head.py
View file @
59ed7304
...
@@ -192,7 +192,7 @@ class PartA2FCHead(RoIHeadTemplate):
...
@@ -192,7 +192,7 @@ class PartA2FCHead(RoIHeadTemplate):
part_features
=
pooled_part_features
[
sparse_idx
[:,
0
],
sparse_idx
[:,
1
],
sparse_idx
[:,
2
],
sparse_idx
[:,
3
]]
part_features
=
pooled_part_features
[
sparse_idx
[:,
0
],
sparse_idx
[:,
1
],
sparse_idx
[:,
2
],
sparse_idx
[:,
3
]]
rpn_features
=
pooled_rpn_features
[
sparse_idx
[:,
0
],
sparse_idx
[:,
1
],
sparse_idx
[:,
2
],
sparse_idx
[:,
3
]]
rpn_features
=
pooled_rpn_features
[
sparse_idx
[:,
0
],
sparse_idx
[:,
1
],
sparse_idx
[:,
2
],
sparse_idx
[:,
3
]]
coords
=
sparse_idx
.
int
()
coords
=
sparse_idx
.
int
()
.
contiguous
()
part_features
=
spconv
.
SparseConvTensor
(
part_features
,
coords
,
sparse_shape
,
batch_size_rcnn
)
part_features
=
spconv
.
SparseConvTensor
(
part_features
,
coords
,
sparse_shape
,
batch_size_rcnn
)
rpn_features
=
spconv
.
SparseConvTensor
(
rpn_features
,
coords
,
sparse_shape
,
batch_size_rcnn
)
rpn_features
=
spconv
.
SparseConvTensor
(
rpn_features
,
coords
,
sparse_shape
,
batch_size_rcnn
)
...
...
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