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
202d767d
Commit
202d767d
authored
Jul 23, 2020
by
Shaoshuai Shi
Browse files
add config DISABLE_PART for PartA2Head
parent
8ec2a2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pcdet/models/roi_heads/partA2_head.py
pcdet/models/roi_heads/partA2_head.py
+2
-1
No files found.
pcdet/models/roi_heads/partA2_head.py
View file @
202d767d
...
@@ -118,7 +118,8 @@ class PartA2FCHead(RoIHeadTemplate):
...
@@ -118,7 +118,8 @@ class PartA2FCHead(RoIHeadTemplate):
point_coords
=
batch_dict
[
'point_coords'
][:,
1
:
4
]
point_coords
=
batch_dict
[
'point_coords'
][:,
1
:
4
]
point_features
=
batch_dict
[
'point_features'
]
point_features
=
batch_dict
[
'point_features'
]
part_features
=
torch
.
cat
((
part_features
=
torch
.
cat
((
batch_dict
[
'point_part_offset'
],
batch_dict
[
'point_cls_scores'
].
view
(
-
1
,
1
).
detach
()
batch_dict
[
'point_part_offset'
]
if
not
self
.
model_cfg
.
get
(
'DISABLE_PART'
,
False
)
else
point_coords
,
batch_dict
[
'point_cls_scores'
].
view
(
-
1
,
1
).
detach
()
),
dim
=
1
)
),
dim
=
1
)
part_features
[
part_features
[:,
-
1
]
<
self
.
model_cfg
.
SEG_MASK_SCORE_THRESH
,
0
:
3
]
=
0
part_features
[
part_features
[:,
-
1
]
<
self
.
model_cfg
.
SEG_MASK_SCORE_THRESH
,
0
:
3
]
=
0
...
...
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