Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

corrected pairing in SSD head of pointpillars #602

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ml3d/torch/models/point_pillars.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def flatten_idx(idx, j):
# for each anchor the gt with max IoU
max_overlaps, argmax_overlaps = overlaps.max(dim=0)
# for each gt the anchor with max IoU
gt_max_overlaps, _ = overlaps.max(dim=1)
gt_max_overlaps, gt_argmax_overlaps = overlaps.max(dim=1)

pos_idx = max_overlaps >= pos_th
neg_idx = (max_overlaps >= 0) & (max_overlaps < neg_th)
Expand All @@ -916,6 +916,7 @@ def flatten_idx(idx, j):
for k in range(len(target_bboxes[i])):
if gt_max_overlaps[k] >= neg_th:
pos_idx[overlaps[k, :] == gt_max_overlaps[k]] = True
argmax_overlaps[gt_argmax_overlaps[k]] = k

# encode bbox for positive matches
assigned_bboxes.append(
Expand Down