๐ก ํ ์ค ์์ฝ#
LiDAR ํฌ์ธํธ ํด๋ผ์ฐ๋์์ 3D ๊ฐ์ฒด๋ฅผ ๋ฐ์ด๋ฉ ๋ฐ์ค ๋์ ์ค์ฌ์ (Center Point)์ผ๋ก ํํยทํ์งํจ์ผ๋ก์จ ๋ฐฉํฅ ๋ถ๋ณ์ฑ(Rotation Invariance)์ ํ๋ณดํ๊ณ , Velocity ํค๋ ์์ธก ๊ธฐ๋ฐ์ Greedy Closest-Point Matching ์๊ณ ๋ฆฌ์ฆ์ผ๋ก 1ms ์๋์ SOTA 3D ์ถ์ (Tracking) ์ฑ๋ฅ์ ๋ฌ์ฑํ๋ค.
๐ ๊ฐ์ ๋ฐ ํต์ฌ ๊ธฐ์ฌ (Key Contributions)#
- ์ ์: Tianwei Yin, Xingyi Zhou, Philipp Krรคhenbรผhl (University of Texas at Austin)
- ๋ฐํ๋ ๋: 2021 (arXiv 2020, CVPR 2021, arXiv:2006.11275)
- ์ฃผ์ ๊ธฐ์ฌ์ :
- Center-based 3D ๊ฐ์ฒด ํํ: ๋ฐฉํฅ ์์กด์ Anchor Box ๋์ ๊ฐ์ฒด์ ์ค์ฌ์ (Keypoint Peak)์ ํ์งํ๋ 2D Gaussian Heatmap ๊ตฌ์กฐ๋ก ํ์ ๋ ๊ฐ์ฒด ํ์ง ์ ํ๋ ๋ํญ ํฅ์.
- ๋ค์ค ํ๊ท ํค๋ (Multi-Task Regression Heads): ์ค์ฌ์ ์ผ๋ก๋ถํฐ ์๋ธ ๋ณต์ ์คํ์ , ๋ฐ๋ฅ ๋์ด, 3D ํฌ๊ธฐ $(\log w, \log l, \log h)$, ํ์ ๊ฐ $(\sin\alpha, \cos\alpha)$, ์๋ $(v_x, v_y)$๋ฅผ ๋์ ํ๊ท.
- 1ms ์ด๊ณ ์ 3D ์ถ์ (Greedy Closest-Point Matching): ์์ธก๋ ์๋ $(v_x, v_y)$๋ก ์ด์ ํ๋ ์ ์์น๋ฅผ ์ญ์ฐํ์ฌ Kalman Filter ์์ด 1ms ๋ง์ 3D Multi-Object Tracking(MOT) ์ํ.
- Two-Stage Refinement & IoU-guided Confidence: 3D ๋ฐ์ค์ 5๊ฐ ์ง์ (4๊ฐ ๋ฉด ์ค์ฌ + ๊ฐ์ฒด ์ค์ฌ) ํผ์ฒ๋ฅผ ์ถ์ถํ์ฌ 3D IoU ๊ธฐ๋ฐ Score๋ฅผ ๋ณด์ .
๐ฏ ๊ด๋ จ ์ฐ๊ตฌ ํ๋ฆ ๋ฐ ๊ธฐ์กด ํ๊ณ (Related Work & Motivation)#
๊ด๋ จ ์ฐ๊ตฌ ํ๋ฆ#
- Anchor-based 3D Detection (VoxelNet, SECOND, PointPillars): BEV ํ๋ฉด์์ ์ถ ์ ๋ ฌ(Axis-Aligned)๋ Anchor Box๋ฅผ ๊ณ ์ ๋ฐฐ์นํ์ฌ ํ์ง.
- CenterPoint: Anchor์ ๋ฐฉํฅ ์ ์ฝ์ ์์ ํ ์ฒ ํํ๊ณ 2D CenterNet ์์ด๋์ด๋ฅผ 3D BEV ๊ณต๊ฐ์ผ๋ก ํ์ฅํ์ฌ ํ์ค 3D Detector ๋ํฉํ ์คํ ๋ค๋๋ก ์๋ฆฌ์ก์.
๊ธฐ์กด Anchor-based ๋ฐฉ๋ฒ์ ํ๊ณ์ #
- ๋ฐฉํฅ ๋ถ์ฐ์์ฑ (Rotation Dependency): ๋๊ฐ์ ์ผ๋ก ํ์ ๋ ์ฐจ๋์ด๋ ๋ณดํ์์ฒ๋ผ ๊ฐ๋ก์ธ๋ก ๋น์จ์ด ๊ทน๋จ์ ์ธ ๋ฌผ์ฒด์ Anchor Box๊ฐ ๋ง์ง ์์ ํ์ง์จ ํ๋ฝ.
- ๋ถํ์ํ ์ด๋งค๊ฐ๋ณ์ ์ค๋ฒํค๋: ํ์ ๊ฐ๋ง๋ค Anchor๋ฅผ ์ค๋ณต ๋ฐฐ์นํด์ผ ํ๋ฏ๋ก ์ฐ์ฐ๋ ์ฆ๊ฐ ๋ฐ IoU ์๊ณ๊ฐ ํ๋ ๋ณต์ก.
๐ ๋ชฉ์ฐจ#
- Chapter 1: 3D Center Heatmap Target ์์ฑ (Gaussian Rendering)
- Chapter 2: CenterPoint ๋ค์ค ํ๊ท ํค๋ ์์ $(\sin/\cos, \text{Velocity})$
- Chapter 3: 2๋จ๊ณ 3D IoU-guided Score Refinement
- Chapter 4: 1ms Greedy Closest-Point 3D ์ถ์ ์๊ณ ๋ฆฌ์ฆ
- Chapter 5: ์ฃผ์ ์คํ ๋ฐ ๊ฒฐ๊ณผ
- Chapter 6: ๊ฒฐ๋ก ๋ฐ ์์ฌ์
๐ ๏ธ Chapter 1: 3D Center Heatmap Target ์์ฑ#
1. ์์ฝ#
GT 3D ๋ฐ์ด๋ฉ ๋ฐ์ค์ ์ค์ฌ $(x_k, y_k)$๋ฅผ BEV ํ๋ฉด์ ํฌ์ํ๊ณ , ๋ฐ์ค ํฌ๊ธฐ $(w_k, l_k)$์ ๋น๋กํ๋ 2D ๊ฐ์ฐ์์ ๋ฐ๊ฒฝ $\sigma_k$๋ฅผ ์ด์ฉํด ๋ ๋๋ง๋ ์ด์ง๋ Target $Y_{u,v,c}$๋ฅผ ๊ตฌ์ฑํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$Y_{u,v,c} = \exp\left(-\frac{(u - x_k)^2 + (v - y_k)^2}{2\sigma_k^2}\right)$$$$\sigma_k = \max\Big( f(w_k, l_k), \ \tau \Big) \quad (\tau = 2)$$import torch
def render_centerpoint_gaussian_heatmap(
gt_centers: torch.Tensor, # (N, 2) GT ์ค์ฌ์ ์ขํ (x, y)
gt_sizes: torch.Tensor, # (N, 2) GT ๋ฐ์ค ํฌ๊ธฐ (w, l)
grid_shape: tuple, # (H, W) BEV ๊ทธ๋ฆฌ๋ ํด์๋
radius_min: float = 2.0
) -> torch.Tensor:
"""
CenterPoint ํ์ต์ ์ํ 2D Gaussian Heatmap Target ์์ฑ
"""
H, W = grid_shape
heatmap = torch.zeros((H, W), dtype=torch.float32)
ys = torch.arange(0, H).float().view(H, 1).repeat(1, W)
xs = torch.arange(0, W).float().view(1, W).repeat(H, 1)
for i in range(len(gt_centers)):
cx, cy = gt_centers[i, 0], gt_centers[i, 1]
w, l = gt_sizes[i, 0], gt_sizes[i, 1]
# ๋ฐ๊ฒฝ sigma ๊ณ์ฐ
sigma = max(float(torch.sqrt(w * l) / 6.0), radius_min)
# Gaussian Kernel ๋ ๋๋ง
gaussian = torch.exp(-((xs - cx)**2 + (ys - cy)**2) / (2 * sigma**2))
heatmap = torch.maximum(heatmap, gaussian)
return heatmap
# --- ์ฌ์ฉ ์์ ---
centers = torch.tensor([[50.0, 50.0], [20.0, 80.0]])
sizes = torch.tensor([[4.0, 2.0], [1.5, 0.8]])
hm_gt = render_centerpoint_gaussian_heatmap(centers, sizes, (100, 100))
print("์์ฑ๋ GT Heatmap Max:", hm_gt.max().item())๐ ๏ธ Chapter 2: CenterPoint ๋ค์ค ํ๊ท ํค๋ ์์#
1. ์์ฝ#
์ค์ฌ์ Heatmap Peak์์ ํ์ ๊ฐ $\alpha$์ ์ฐ์์ฑ์ ๋ณด์ฅํ๊ธฐ ์ํด $\sin\alpha, \cos\alpha$ ํ๊ท๋ฅผ ์ฌ์ฉํ๋ฉฐ, ํ๋ ์ ๊ฐ ์ด๋ ์๋ $(v_x, v_y)$๋ฅผ ๋์ ์์ธกํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$\alpha = \text{atan2}(\sin\alpha, \cos\alpha)$$$$\hat{\mathbf{v}} = (v_x, v_y) = \frac{\boldsymbol{\mu}_t - \boldsymbol{\mu}_{t-1}}{\Delta t}$$import torch
def decode_centerpoint_rot_and_velocity(
sin_cos_pred: torch.Tensor, # (B, 2, H, W) -> sin(alpha), cos(alpha)
vel_pred: torch.Tensor # (B, 2, H, W) -> vx, vy
) -> tuple:
"""
CenterPoint ํ๊ท ํค๋๋ก๋ถํฐ 3D Yaw ํ์ ๊ฐ alpha ๋ฐ ์๋ (vx, vy) ๋์ฝ๋ฉ
"""
sin_a = sin_cos_pred[:, 0]
cos_a = sin_cos_pred[:, 1]
# 1. Yaw angle ๋ณต์: alpha = atan2(sin, cos)
yaw_angle = torch.atan2(sin_a, cos_a) # (B, H, W)
# 2. ์๋ ๋ฒกํฐ
vx = vel_pred[:, 0]
vy = vel_pred[:, 1]
return yaw_angle, vx, vy
# --- ์ฌ์ฉ ์์ ---
sc_pred = torch.tensor([[[[0.7071]], [[0.7071]]]]) # sin(45deg), cos(45deg)
v_pred = torch.tensor([[[[1.2]], [[-0.5]]]])
yaw, vx, vy = decode_centerpoint_rot_and_velocity(sc_pred, v_pred)
print("๋ณต์๋ Yaw ๊ฐ๋ (deg):", torch.rad2deg(yaw).item())๐ ๏ธ Chapter 3: 2๋จ๊ณ 3D IoU-guided Score Refinement#
1. ์์ฝ#
1๋จ๊ณ ์ค์ฌ์ ํ์ง ์ ์ $\hat{Y}_t$์ 2๋จ๊ณ 3D IoU-guided ๋ณด์ ์ ์ $\hat{I}_t$์ ๊ธฐํํ๊ท ์ ์ต์ข ์ ๋ขฐ๋ ์ ์ $\hat{Q}_t$๋ก ์ฐ์ถํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$I_t = \min\Big(1, \ \max(0, \ 2 \times \text{IoU}_t - 0.5)\Big)$$$$\hat{Q}_t = \sqrt{\hat{Y}_t \cdot \hat{I}_t}$$import torch
def compute_iou_guided_confidence_score(
heatmap_score: torch.Tensor, # (N,) 1๋จ๊ณ Heatmap Peak ์ ์
predicted_iou: torch.Tensor # (N,) 2๋จ๊ณ ์์ธก 3D IoU
) -> torch.Tensor:
"""
Two-Stage CenterPoint์ ์ต์ข
confidence score Q_hat = sqrt(Y_hat * I_hat)
"""
# IoU target ์ ๊ทํ I_t = clamp(2 * IoU - 0.5, 0, 1)
i_score = torch.clamp(2.0 * predicted_iou - 0.5, min=0.0, max=1.0)
final_score = torch.sqrt(heatmap_score * i_score)
return final_score
# --- ์ฌ์ฉ ์์ ---
y_score = torch.tensor([0.9, 0.8])
iou_pred = torch.tensor([0.85, 0.4]) # 0.85 IoU -> I=1.0 / 0.4 IoU -> I=0.3
print("์ต์ข
๋ณด์ Confidence Score:", compute_iou_guided_confidence_score(y_score, iou_pred))๐ ๏ธ Chapter 4: 1ms Greedy Closest-Point 3D ์ถ์ ์๊ณ ๋ฆฌ์ฆ#
1. ์์ฝ#
ํ์ฌ ํ๋ ์ ํ์ง ๊ฐ์ฒด์ ์ค์ฌ $\boldsymbol{\mu}_t$์์ ์์ธก ์๋ $\mathbf{v}_t$๋ฅผ ์ฐจ๊ฐํ์ฌ ์ด์ ์์น $\boldsymbol{\mu}_{t-1}^{pred} = \boldsymbol{\mu}_t - \mathbf{v}_t \Delta t$๋ฅผ ์ญ์ฐํ๊ณ , ์ด์ Tracklet๊ณผ์ L2 ๊ฑฐ๋ฆฌ๊ฐ ๊ฐ์ฅ ๊ฐ๊น์ด ๊ฒ๋ผ๋ฆฌ ํ์์ (Greedy) ๋งค์นญํฉ๋๋ค.
import torch
def greedy_closest_point_3d_tracking(
curr_centers: torch.Tensor, # (N, 2) ํ์ฌ ํ๋ ์ ํ์ง ์ค์ฌ์
curr_velocities: torch.Tensor,# (N, 2) ์์ธก ์๋ (vx, vy)
prev_tracklets: torch.Tensor, # (M, 2) ์ด์ ํ๋ ์ Tracklet ์์น
dt: float = 0.5, # ํ๋ ์ ๊ฐ ์๊ฐ ๊ฐ๊ฒฉ (sec)
dist_threshold: float = 2.0 # ์ต๋ ๋งค์นญ ๊ฑฐ๋ฆฌ ์๊ณ๊ฐ (m)
) -> dict:
"""
Velocity ๊ธฐ๋ฐ 1ms Greedy Closest-Point 3D MOT ๋งค์นญ
"""
# 1. ํ์ฌ ์ค์ฌ์ ์ ์ด์ ํ๋ ์ ์์น๋ก ์ญํฌ์: mu_{t-1} = mu_t - v_t * dt
pred_prev_centers = curr_centers - curr_velocities * dt # (N, 2)
# 2. L2 ๊ฑฐ๋ฆฌ ํ๋ ฌ ๊ณ์ฐ (N, M)
dist_matrix = torch.cdist(pred_prev_centers, prev_tracklets)
# 3. Greedy Matching
matched_pairs = []
for i in range(len(curr_centers)):
min_dist, min_idx = torch.min(dist_matrix[i], dim=0)
if min_dist.item() < dist_threshold:
matched_pairs.append((i, min_idx.item()))
dist_matrix[:, min_idx] = 1e6 # ์ค๋ณต ๋งค์นญ ๋ฐฉ์ง
return {"matches": matched_pairs}
# --- ์ฌ์ฉ ์์ ---
curr_c = torch.tensor([[10.0, 10.0], [30.0, 30.0]])
curr_v = torch.tensor([[2.0, 0.0], [0.0, 1.0]])
prev_t = torch.tensor([[9.0, 10.0], [50.0, 50.0]])
print("1ms ์ถ์ ๋งค์นญ ๊ฒฐ๊ณผ:", greedy_closest_point_3d_tracking(curr_c, curr_v, prev_t, dt=0.5))๐ ์ฃผ์ ์คํ ๋ฐ ๊ฒฐ๊ณผ (Experiments & Results)#
1. nuScenes & Waymo 3D ํ์ง/์ถ์ ์ฑ๋ฅ ๋ฆฌ๋๋ณด๋#
| ๋ฒค์น๋งํฌ (Benchmark) | ๋ชจ๋ธ (Method) | ํ์ง ์ฑ๋ฅ (mAP / NDS) โ | ์ถ์ ์ฑ๋ฅ (AMOTA) โ | ์ถ์ ์ง์ฐ์๊ฐ |
|---|---|---|---|---|
| Waymo (Level 2) | PointPillars | 55.6 mAP | - | - |
| Waymo (Level 2) | CenterPoint-Voxel | 72.2 mAP (+16.6%) | - | - |
| nuScenes (Test) | AB3D (Kalman Filter) | - | 15.1 | 73 ms |
| nuScenes (Test) | CenterPoint (Ours) | 58.0 mAP / 65.5 NDS | 63.8 (+8.8%) | 1 ms (73๋ฐฐ ๊ฐ์) |
๐ก ๊ฒฐ๋ก ๋ฐ ์์ฌ์ (Conclusion & Insights)#
1. ๊ฒฐ๋ก #
CenterPoint๋ 3D ํ์ง๋ฅผ 2D Gaussian Center Peak ์ถ์ ๋ฌธ์ ๋ก ๋ช ์พํ๊ฒ ์ ํํจ์ผ๋ก์จ ํ์ ์ด๋ฐฉ์ฑ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ณ , Velocity ๊ธฐ๋ฐ 1ms ์ถ์ ์ ์์ฑํ ํ๋ 3D Perception์ ๋ํฉํ ํ์ค ํ์ดํ๋ผ์ธ์ ๋๋ค.
2. ํ๊ณ์ ๋ฐ ์์ฌ์ด ์ #
- LiDAR ์ ์ฉ์ด๋ผ ์นด๋ฉ๋ผ ์ ์ฉ ๋๋ ์นด๋ฉ๋ผ+LiDAR ์ตํฉ ํ์ง์๋ ์ง์ ์ ์ฉํ ์ ์๋ค.
- PointPillars ๋ฐฑ๋ณธ ์ฌ์ฉ ์ ๋ณดํ์์ฒ๋ผ 1ํฝ์ ํฌ๊ธฐ์ ๊ฐ์ฒด์์๋ 2๋จ๊ณ ์ ์ ํจ๊ณผ๊ฐ ์์ํ ํ๊ณ๋ก ์ ํ์ ์ด๋ค.
- velocity ์์ธก์ด ๋น์ ํ ๊ธฐ๋(๊ธํ์ ๋ฑ)์์๋ ๋ถ์ ํํ ์ ์์ด, ์ค์ ๋ณต์กํ ๋์ฌ ์๋๋ฆฌ์ค์์์ ์ถ์ ์ ๋ขฐ์ฑ์ ์ถ๊ฐ ๊ฒ์ฆ์ด ํ์ํ๋ค.
์ฐธ๊ณ ์๋ฃ#
๊ด๋ จ ๋ ผ๋ฌธ: PointNet, PointPillars, BEVFusion, nuScenes, Waymo Open Dataset