๐ก ํ ์ค ์์ฝ#
ํ๋์ ๊ณ ์ ๋ ์ ๊ท ๊ณต๊ฐ(Canonical Space) 3D ๊ฐ์ฐ์์ ์งํฉ์ ์๊ฐ์ ๋ฐ๋ฅธ 3D ๋ณํ(Deformation)์ ์์ธกํ๋ Gaussian Deformation Field Network๋ฅผ ๊ฒฐํฉํ์ฌ, ๋์ (Dynamic) ์ฅ๋ฉด์์๋ ์ค์๊ฐ(์ต๋ 82fps) ๋ ๋๋ง ๋ฐ ํ๋ ์ ์์ ๋ฌด๊ดํ ํจ์จ์ ์ ์ฅ ์ฉ๋์ ๋ฌ์ฑํ๋ค.
๐ ๊ฐ์ ๋ฐ ํต์ฌ ๊ธฐ์ฌ (Key Contributions)#
- ์ ์: Guanjun Wu, Taoran Yi, Jiemin Fang, Lingxi Xie, Xiaopeng Zhang, Wei Wei, Wenyu Liu, Qi Tian, Xinggang Wang (Huazhong Univ. of Science and Tech., Huawei)
- ๋ฐํ๋ ๋: 2023 (arXiv:2310.08528, ICLR 2024)
- ์ฃผ์ ๊ธฐ์ฌ์ :
- Canonical 3D Gaussians + Deformation Field ์ถ์กฐ: ํ๋ ์๋ณ๋ก ๊ฐ์ฐ์์์ ์๋ก ๋ง๋๋ ๋์ , ๋จ์ผ ์ ๊ท ๊ณต๊ฐ 3DGS $\mathcal{G}$์ ์๊ฐ $t$๋ฅผ ์ ๋ ฅ๋ฐ์ ๋ณํ๋ $\Delta\mathcal{G}$๋ฅผ ์ถ๋ ฅํ๋ ๋ฏธ๋ถ ๊ฐ๋ฅ ๋ณํ ์ ๊ฒฝ๋ง์ ์ฐ๊ฒฐํด ์ ์ฅ ๋ณต์ก๋๋ฅผ $\mathcal{O}(TN)$์์ $\mathcal{O}(N+F)$๋ก ์ ๊ฐ.
- HexPlane ๊ธฐ๋ฐ ์๊ณต๊ฐ ๊ตฌ์กฐ ์ธ์ฝ๋ (Spatial-Temporal Encoder): 4D ์๊ณต๊ฐ $(x, y, z, t)$์ 6๊ฐ์ 2D ํน์ง ํ๋ฉด(Plane)์ผ๋ก ๋ถํดํ์ฌ ์๊ณต๊ฐ ์ด์ ํน์ง์ ๋งค์ฐ ๋น ๋ฅด๊ฒ ์กฐํํ๋ HexPlane ์ธ์ฝ๋ ๊ฐ๋ฐ.
- Multi-Head Deformation Decoder: 3D ์ค์ฌ ์ด๋๋ $\Delta\boldsymbol{\mu}$, ํ์ ์ฟผํฐ๋์ธ ๋ณ์ $\Delta\mathbf{q}$, ์ค์ผ์ผ ๋ณ์ $\Delta\mathbf{s}$๋ฅผ ๊ฐ๊ฐ ๋ ๋ฆฝ๋ MLP ํค๋๋ก ์์ธกํ์ฌ ๋ณต์กํ ๋น์ ํ ๋ณํ์ ์ ๋ฐํ๊ฒ ๋ณต์.
๐ฏ ๊ด๋ จ ์ฐ๊ตฌ ํ๋ฆ ๋ฐ ๊ธฐ์กด ํ๊ณ (Related Work & Motivation)#
๊ด๋ จ ์ฐ๊ตฌ ํ๋ฆ#
- Dynamic NeRF (HyperNeRF, TiNeuVox ๋ฑ): ์ฐ์ 4D ์ ๊ฒฝ ๋ฐฉ์ฌ์ฅ์ ์ฒด์ ์ ๋ถํ์ฌ ๋์ ์ฅ๋ฉด์ ์ฌ๊ตฌ์ฑํ์ผ๋ ๋ ๋๋ง ์๋๊ฐ 1~2 FPS๋ก ๊ทนํ ๋๋ฆผ.
- DynamicGaussian: 3DGS๋ฅผ ๋์ ์ฅ๋ฉด์ ๋์ ํ์ผ๋ ํ๋ ์๋ง๋ค ๋ณ๋์ ๊ฐ์ฐ์์ ํํฐํด์ ๋ ์ ์ถ์ ํด ํ๋ ์ ์ $T$์ ๋น๋กํ์ฌ ๋ฉ๋ชจ๋ฆฌ๊ฐ ํญ๋ฐ์ ์ผ๋ก ์ฆ๊ฐํจ.
- 4D-GS: ๋จ์ผ Canonical 3DGS + HexPlane 4D ๋ณํ ์ ๊ฒฝ๋ง ๊ธฐ๋ฒ์ผ๋ก ํ์ง, ์ค์๊ฐ ์๋, ๋ฉ๋ชจ๋ฆฌ ํจ์จ์ ๊ฒฐํฉ ์ฑ๊ณต.
๊ธฐ์กด ๋์ ๋ ๋๋ง์ ํ๊ณ์ #
- ๋ฉ๋ชจ๋ฆฌ ์ ํ ํญ๋ฐ: ํ๋ ์๋น ๊ฐ์ฐ์์์ ๋ณด๊ดํ๋ฉด 1,000 ํ๋ ์ ๋์์ ๋ ๋๋ง ์ ์ GB ๋จ์์ ์ฉ๋์ด ํ์ํจ.
- ์ฅ๊ฑฐ๋ฆฌ ๋ชจ์ ํํ ํ๊ณ: ๋จ์ ๊ดํ ํ๋ฆ(Optical Flow) ์ ํ ์ด์ก์ ๋ฌผ์ฒด์ 3D ํ์ ์ด๋ ์ ๊ธฐ์ ๋ณํ์ ํฌ์ฐฉํ๊ธฐ ์ด๋ ค์.
๐ ๋ชฉ์ฐจ#
- Chapter 1: 4D Gaussian Splatting ํ์ดํ๋ผ์ธ
- Chapter 2: HexPlane (6-Plane) ์๊ณต๊ฐ ์ธ์ฝ๋ฉ ๊ตฌ์กฐ
- Chapter 3: Multi-Head Deformation Decoder ๋ฐ ๋ณํ ๋ฐฉ์ ์
- Chapter 4: ์๊ณต๊ฐ ํํํ ์ ๊ทํ (Total Variation Loss)
- Chapter 5: ์ฃผ์ ์คํ ๋ฐ ๊ฒฐ๊ณผ
- Chapter 6: ๊ฒฐ๋ก ๋ฐ ์์ฌ์
๐ ๏ธ Chapter 1: 4D Gaussian Splatting ํ์ดํ๋ผ์ธ#
1. ์์ฝ#
์ ์ ์ฅ๋ฉด์ ํํํ๋ Canonical 3D Gaussians $\mathcal{G} = \{\boldsymbol{\mu}_i, \mathbf{q}_i, \mathbf{s}_i, \alpha_i, c_i\}_{i=1}^N$๋ฅผ ์ ๊ท ๊ณต๊ฐ์ ์ ์ํฉ๋๋ค. ์์์ ํ์์คํ $t$๊ฐ ์ฃผ์ด์ง๋ฉด ๋ณํ ์ ๊ฒฝ๋ง์ด ๋ณ์๋ $\Delta\mathcal{G}_i(t) = \{\Delta\boldsymbol{\mu}_i, \Delta\mathbf{q}_i, \Delta\mathbf{s}_i\}$๋ฅผ ์ถ๋ ฅํ๋ฉฐ, ์๊ฐ์ ๋ง์ถฐ ๋ณํ๋ ๊ฐ์ฐ์์ $\mathcal{G}'(t)$๋ฅผ ๋ฏธ๋ถ ๊ฐ๋ฅ ํ์ผ ๋์คํฐ๋ผ์ด์ ๋ก ์ ๋ฌํด ์ค์๊ฐ ๋ ๋๋งํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
4D ๊ฐ์ฐ์์ ๋ณํ ๋ ๋๋ง ๋ฐฉ์ ์#
$$\mathcal{G}'(t) = \{ \boldsymbol{\mu}_i + \Delta\boldsymbol{\mu}_i(t), \ \mathbf{q}_i + \Delta\mathbf{q}_i(t), \ \mathbf{s}_i + \Delta\mathbf{s}_i(t), \ \alpha_i, \ c_i \}$$$$\hat{\mathbf{I}}(t) = \text{Rasterize}\big( \mathbf{M}, \ \mathcal{G}'(t) \big)$$- $\mathbf{M}$: ํ์์คํ $t$์์์ ์นด๋ฉ๋ผ ์ธ๋ถ/๋ด๋ถ ํฌ์ฆ ํ๋ ฌ
- $\Delta\boldsymbol{\mu}_i, \Delta\mathbf{q}_i, \Delta\mathbf{s}_i$: ์๊ฐ $t$์ ๋ฐ๋ฅธ $i$๋ฒ์งธ ๊ฐ์ฐ์์์ ์์น, ํ์ , ํฌ๊ธฐ ๋ณํ๋
๐ ๏ธ Chapter 2: HexPlane ์๊ณต๊ฐ ์ธ์ฝ๋ฉ ๊ตฌ์กฐ#
1. ์์ฝ#
4D ๊ณต๊ฐ $(x, y, z, t)$์ 3์ฐจ์ ๊ทธ๋ฆฌ๋๋ก ๋ฐ๋ก ์ ์ฅํ๋ฉด ๋ฉ๋ชจ๋ฆฌ๊ฐ ํญ๋ฐํ๋ฏ๋ก, 6๊ฐ์ 2D ํ๋ฉด์ธ ๊ณต๊ฐ ํ๋ฉด 3๊ฐ $(xy, xz, yz)$์ ์๊ณต๊ฐ ํ๋ฉด 3๊ฐ $(xt, yt, zt)$๋ก ๋ถํดํฉ๋๋ค. 4D ์์น ์ขํ๋ฅผ ๊ฐ 2D ํ๋ฉด์ ํฌ์ํ์ฌ ์ป์ ํน์ง๋ค์ ์์๋ณ ๊ณฑ(Element-wise Multiplication)์ผ๋ก ๊ฒฐํฉํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$\mathbf{v}(x,y,z,t) = \prod_{p \in \{(xy),(xz),(yz),(xt),(yt),(zt)\}} \text{Interp}\Big( \mathbf{P}_p, \ \pi_p(x,y,z,t) \Big)$$- $\mathbf{P}_p$: $p$๋ฒ์งธ 2D ํ๋ฉด ํผ์ฒ ๊ทธ๋ฆฌ๋ (Feature Plane)
- $\pi_p$: 4D ์ขํ๋ฅผ ํด๋น 2D ํ๋ฉด ์ถ์ผ๋ก ์ ํ ํฌ์ํ๋ ํจ์
- $\text{Interp}$: 2D ํผ์ฒ ํ๋ฉด ์์ ์์ ํ ๋ณด๊ฐ (Bilinear Interpolation)
import torch
import torch.nn as nn
import torch.nn.functional as F
class HexPlaneFeatureEncoder(nn.Module):
"""
4D (x,y,z,t) ์ขํ๋ฅผ 6๊ฐ์ 2D HexPlane ํผ์ฒ ๊ทธ๋ฆฌ๋์ ํฌ์ํ์ฌ ํผ์ฒ ๋ฒกํฐ ์ถ์ถ
"""
def __init__(self, plane_res: int = 64, feature_dim: int = 16):
super().__init__()
# 6๊ฐ 2D ํ๋ฉด ํผ์ฒ ๊ทธ๋ฆฌ๋ ํ๋ผ๋ฏธํฐ (Spatial: xy, xz, yz / Temporal: xt, yt, zt)
self.planes = nn.ParameterList([
nn.Parameter(torch.randn(1, feature_dim, plane_res, plane_res) * 0.1)
for _ in range(6)
])
self.plane_pairs = [
(0, 1), (0, 2), (1, 2), # xy, xz, yz
(0, 3), (1, 3), (2, 3) # xt, yt, zt
]
def forward(self, coords_4d: torch.Tensor) -> torch.Tensor:
"""
coords_4d Shape: (B, 4) -> (x, y, z, t) in [-1, 1]
"""
B = coords_4d.shape[0]
feature_product = 1.0
for idx, (ax1, ax2) in enumerate(self.plane_pairs):
# 1. 2D ์ขํ ์ ํ (B, 1, 1, 2)
grid_coords = coords_4d[:, [ax1, ax2]].view(B, 1, 1, 2)
# 2. 2D ์์ ํ ๋ณด๊ฐ Sample (B, feature_dim, 1, 1)
sampled_feat = F.grid_sample(
self.planes[idx].expand(B, -1, -1, -1),
grid_coords,
mode='bilinear',
padding_mode='border',
align_corners=True
).squeeze(-1).squeeze(-1) # (B, feature_dim)
# 3. Element-wise Product
feature_product = feature_product * sampled_feat
return feature_product
# --- ์ฌ์ฉ ์์ ---
coords_4d_example = torch.tensor([[0.2, -0.5, 0.1, 0.8]]) # (x, y, z, t)
encoder = HexPlaneFeatureEncoder()
print("HexPlane ์ถ์ถ 4D ํผ์ฒ ์ฐจ์:", encoder(coords_4d_example).shape)๐ ๏ธ Chapter 3: Multi-Head Deformation Decoder ๋ฐ ๋ณํ ๋ชจ๋ธ๋ง#
1. ์์ฝ#
HexPlane์์ ์ถ์ถ๋ 4D ์๊ณต๊ฐ ํน์ง $\mathbf{v}$๋ฅผ ๋์ฝ๋ ์ ๊ฒฝ๋ง์ ์ ๋ฌํ์ฌ ์ค์ฌ ์ด๋, ํ์ ๋ณํ, ์ค์ผ์ผ ๋ณํ๋์ ๋ค์ค ํค๋(Multi-head) ๊ตฌ์กฐ๋ก ๋ ๋ฆฝ ์์ธกํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$\Delta\boldsymbol{\mu} = \text{Head}_{\boldsymbol{\mu}}(\mathbf{v}), \quad \Delta\mathbf{q} = \text{Head}_{\mathbf{q}}(\mathbf{v}), \quad \Delta\mathbf{s} = \text{Head}_{\mathbf{s}}(\mathbf{v})$$import torch
import torch.nn as nn
class MultiHeadDeformationDecoder(nn.Module):
"""
HexPlane ํน์ง์ ๋ฐ์ ๊ฐ์ฐ์์ ์์น, ํ์ , ์ค์ผ์ผ ๋ณ์๋์ ์์ธกํ๋ Multi-Head MLP
"""
def __init__(self, in_dim: int = 16, hidden_dim: int = 64):
super().__init__()
self.backbone = nn.Sequential(
nn.Linear(in_dim, hidden_dim),
nn.ReLU(),
nn.Linear(hidden_dim, hidden_dim),
nn.ReLU()
)
# 3๊ฐ ๋ณํ ์์ธก ๋
๋ฆฝ ํค๋
self.head_pos = nn.Linear(hidden_dim, 3) # delta_mu (dx, dy, dz)
self.head_rot = nn.Linear(hidden_dim, 4) # delta_q (dw, dx, dy, dz)
self.head_scale = nn.Linear(hidden_dim, 3) # delta_s (dsx, dsy, dsz)
def forward(self, feature_v: torch.Tensor) -> tuple:
feat = self.backbone(feature_v)
delta_pos = self.head_pos(feat)
delta_rot = self.head_rot(feat)
delta_scale = self.head_scale(feat)
return delta_pos, delta_rot, delta_scale
# --- ์ฌ์ฉ ์์ ---
v_feat = torch.randn(1, 16)
decoder = MultiHeadDeformationDecoder()
d_p, d_r, d_s = decoder(v_feat)
print("์์ธก๋ ์์น ๋ณ์ d_pos:", d_p)
print("์์ธก๋ ํ์ ๋ณ์ d_rot:", d_r)
print("์์ธก๋ ์ค์ผ์ผ ๋ณ์ d_scale:", d_s)๐ ๏ธ Chapter 4: ์๊ณต๊ฐ Total Variation ์ ๊ทํ ์์ค (TV Loss)#
1. ์์ฝ#
HexPlane ํผ์ฒ ํ๋ฉด์ ์ธ์ ๊ทธ๋ฆฌ๋ ๊ฐ ๊ธ๊ฒฉํ ๋ถ์ฐ์์ฑ์ ์ต์ ํ๊ณ ์๊ณต๊ฐ ๋ชจ์ ์ ๋ถ๋๋ฌ์(Smoothness)์ ๊ฐ์ ํ๊ธฐ ์ํด Total Variation ์์ค์ ์ถ๊ฐํฉ๋๋ค.
2. ์์ ๋ฐ ํ์ด์ฌ ์ฝ๋ ์ค๋ช #
$$\mathcal{L}_{TV}(\mathbf{P}_p) = \frac{1}{H \cdot W} \sum_{i, j} \left( \|\mathbf{P}_p[i+1, j] - \mathbf{P}_p[i, j]\|_1 + \|\mathbf{P}_p[i, j+1] - \mathbf{P}_p[i, j]\|_1 \right)$$import torch
def compute_hexplane_tv_loss(planes: list) -> torch.Tensor:
"""
6๊ฐ HexPlane ํผ์ฒ ๊ทธ๋ฆฌ๋์ ๋ํ Total Variation ์์ค ๊ณ์ฐ
"""
total_tv = 0.0
for plane in planes:
# plane Shape: (1, C, H, W)
dh = torch.abs(plane[:, :, 1:, :] - plane[:, :, :-1, :])
dw = torch.abs(plane[:, :, :, 1:] - plane[:, :, :, :-1])
total_tv += dh.mean() + dw.mean()
return total_tv
# --- ์ฌ์ฉ ์์ ---
dummy_planes = [torch.randn(1, 16, 64, 64) for _ in range(6)]
print("HexPlane TV Loss:", compute_hexplane_tv_loss(dummy_planes).item())๐ ์ฃผ์ ์คํ ๋ฐ ๊ฒฐ๊ณผ (Experiments & Results)#
1. ๋ํ ๋์ ๋ฒค์น๋งํฌ ์ฑ๋ฅ ๋น๊ต (D-NeRF ๋ฐ์ดํฐ์ )#
| ๋ชจ๋ธ (Method) | PSNR โ | SSIM โ | ๋ ๋๋ง ์๋ (FPS) โ | ํ์ต ์๊ฐ โ | ๋ฉ๋ชจ๋ฆฌ/์ฉ๋ |
|---|---|---|---|---|---|
| TiNeuVox-B | 32.67 | 0.971 | 1.5 FPS | 28 ๋ถ | 48 MB |
| V4D | 33.72 | 0.980 | 4.4 FPS | 6.9 ์๊ฐ | - |
| DynamicGaussian | 31.20 | 0.960 | 60 FPS | 15 ๋ถ | 380 MB (์ ํ ์ฆ๊ฐ) |
| 4D-GS (Ours) | 34.05 | 0.982 | 82 FPS | 8 ๋ถ | 18 MB (์ต์ ์ ์ฅ) |
- ๊ฒฐ๊ณผ: ๊ธฐ์กด ๋์ NeRF ๋๋น ๋ ๋๋ง ์๋ 80๋ฐฐ ๊ฐ์ (82 FPS) ๋ฐ PSNR +1.4 dB ํฅ์. ํ๋ ์๋ณ ๋ณต์ ๋ฐฉ์ ๋๋น ์ฉ๋์ 18 MB ์์ค์ผ๋ก ์์ถ.
๐ก ๊ฒฐ๋ก ๋ฐ ์์ฌ์ (Conclusion & Insights)#
1. ๊ฒฐ๋ก #
4D-GS๋ ์ ์ 3DGS๋ฅผ Canonical ๊ณต๊ฐ์ ๋ฐฐ์นํ๊ณ HexPlane ์๊ณต๊ฐ ์ธ์ฝ๋ ๊ธฐ๋ฐ ๋ณํ ์ ๊ฒฝ๋ง์ ์ ๊ธฐ์ ์ผ๋ก ๊ฒฐํฉํ์ฌ, ๋์ ์ฅ๋ฉด ๋ ๋๋ง์์ ์ต๊ณ ํ์ง, ์ค์๊ฐ ์๋(80+ FPS), ์ต์ ์ ์ฅ ์ฉ๋์ ๋์์ ๋ฌ์ฑํ ๋ํ์ ์ธ 4D ์ ๊ฒฝ ํํ ๋ ผ๋ฌธ์ ๋๋ค.
2. ์ค๋ฌด์ ์์ฌ์ #
- ์์จ์ฃผํ ์๋ฎฌ๋ ์ดํฐ: ๋ณดํ์ ๋ฐ ์ฐจ๋ ๋ฑ ์๊ฐ์ ๋ฐ๋ผ ์์ง์ด๋ ๋์ ๊ฐ์ฒด๋ค์ 4D-GS ๋ณํ ํ๋๋ก ํํํด ํด๋ก์ฆ๋ ๋ฃจํ ์๋ฎฌ๋ ์ด์ (HUGSIM ๋ฑ) ๋ฐฑ๋ณธ์ผ๋ก ์ ์ฉ ๊ฐ๋ฅ.
์ฐธ๊ณ ์๋ฃ#
๊ด๋ จ ๋ ผ๋ฌธ: 3D Gaussian Splatting, Street Gaussians, DrivingGaussian