概述
神经辐射场(NeRF,2020)和 3D 高斯斑点(2023)将其从研究好奇心转变为从普通图片构建可探索 3D 场景的实用方式,更新的方法可在实时 1080p 下渲染。
主要要点
- 新视角合成使用已定位的输入照片和拟合的3D表示,从从未拍摄过的相机位置渲染场景。
- NeRF 于2020年提出,将场景存储在沿相机光线查询的神经网络中,在其合成基准上获得31.01 dB PSNR。
- 原始 NeRF 需要对每个场景进行一到两天的训练,并在 V100 GPU 上大约30秒渲染每帧。
- 2023 年发表的 3D 高斯斑点以约 134 帧每秒的速度渲染无限真实场景,质量接近 Mip-NeRF 360。
- 斑点渲染以速度换取内存,每个场景使用数百兆字节,而 NeRF 网络只需几兆字节。
- 输入照片从未看到的区域无法重建,只能猜测,这也是单图像方法依赖生成模型的原因。
深入探讨
Novel view synthesis means producing a new image of a scene from a viewpoint where no camera stood. The input is a collection of photos, plus an estimate of where each camera was and which way it pointed, called its pose. The output is a renderer: give it any new pose and it returns the image a camera there would have taken. If a method only blends nearby photos, views far from the originals break down. Modern methods therefore build an internal 3D representation of the scene, fit it so that rendering from the known poses reproduces the input photos, and then render from new poses. What the model never saw, such as the back of a statue photographed only from the front, has to be guessed or left blank.
Almost every pipeline starts with structure-from-motion (SfM), a classical computer vision step that matches feature points across photos and solves for the camera poses and a sparse cloud of 3D points. Google's 2023 Research post on indoor reconstructions for Maps describes exactly this step: photos are processed with structure-from-motion to recover each camera's position, orientation and lens properties before any neural model is trained. Errors here, such as a wrongly placed camera, cause blur and ghosting later, because the model tries to reconcile photos that do not actually agree.
The neural radiance field, or NeRF, was introduced in March 2020 by Ben Mildenhall, Pratul Srinivasan, Matthew Tancik, Jonathan Barron, Ravi Ramamoorthi and Ren Ng, and presented as an oral at ECCV 2020. A NeRF is a fully connected neural network that takes a 3D position and a viewing direction and returns two things: a density, meaning how much that point blocks light, and a color as seen from that direction. To render a pixel, the method shoots a ray from the camera through the pixel, samples points along it, queries the network at each point and adds up the colors weighted by how much light survives to reach the camera. That process, called volume rendering, is differentiable, so the network can be trained with gradient descent simply by comparing rendered pixels with the real photos.
NeRF's results were a step change. On the paper's synthetic 360-degree scenes, built from 100 input views each, it scored 31.01 dB peak signal-to-noise ratio (PSNR, a pixel-accuracy measure where higher is better) against 26.05 dB for the best prior method, Neural Volumes. On real forward-facing scenes it scored 26.50 dB against 24.13 dB for LLFF. The whole scene fit in about 5 MB of network weights, compared with over 15 GB for LLFF on one synthetic scene. The costs were speed: training took 100,000 to 300,000 iterations, about one to two days on an NVIDIA V100 GPU, and rendering a single frame took about 30 seconds.
Three lines of work addressed those costs and limits. Instant-NGP, from Thomas Müller and colleagues at NVIDIA in January 2022 and published at SIGGRAPH 2022, replaced most of the large network with a multiresolution hash table of trainable features, cutting training to seconds or minutes and rendering 1920 by 1080 images in tens of milliseconds. Mip-NeRF 360, from Jonathan Barron and colleagues in November 2021, handled unbounded scenes where the camera circles a subject and the background stretches to the horizon, reporting 57% lower mean squared error than its predecessor mip-NeRF. Then 3D Gaussian splatting, by Bernhard Kerbl, Georgios Kopanas, Thomas Leimkühler and George Drettakis, published in ACM Transactions on Graphics in July 2023, dropped the neural network entirely. It represents the scene as millions of small, semi-transparent, stretched 3D blobs called Gaussians, each with a position, shape, opacity and view-dependent color, and draws them with a fast rasterizer instead of tracing rays.
The trade-offs show up clearly in the splatting paper's comparison on the Mip-NeRF 360 dataset. Mip-NeRF 360 reached 27.69 dB PSNR but needed 48 GPU-hours of training and rendered at 0.06 frames per second. Instant-NGP trained in under 8 minutes and rendered at about 10 frames per second, but scored 25.3 to 25.6 dB. Gaussian splatting reached 27.21 dB after 41 minutes of training, rendered at 134 frames per second on an NVIDIA A6000, and had better SSIM and LPIPS perceptual scores than Mip-NeRF 360. Its price is memory: 734 MB per scene against 8.6 MB for Mip-NeRF 360, with 1 to 5 million Gaussians in real scenes.
A separate branch tackles the hardest version of the problem, novel views from one or a few images. Zero-1-to-3, posted in March 2023 by Ruoshi Liu, Carl Vondrick and colleagues, fine-tunes a large image diffusion model on synthetic objects so that it can generate an object from a requested camera rotation given a single photo. It generalizes to real photos and even paintings, but the unseen side is invented from learned priors, not measured. Per-scene methods such as NeRF and splatting instead reconstruct only what the photos support.
Failure modes are consistent across methods. The splatting authors list artifacts in poorly observed regions, elongated or splotchy Gaussians, and popping when large Gaussians appear. NeRF-style models assume a static scene with constant lighting; Google's indoor pipeline adds per-image appearance codes from NeRF in the Wild and exposure inputs from Block-NeRF to cope with changing light, and its post lists dim bars as a hard case. Moving people, reflections, thin structures and blank walls with few features all degrade results. In practice a usable capture needs dozens to hundreds of sharp, overlapping photos with fixed exposure settings, a GPU for training, and, for splatting, a viewer that can hold hundreds of megabytes per scene.
04工作示例
捕获并检查一个小的高斯斑点场景
Pick a static object or room, lock the camera's exposure and white balance, and take about 100 to 200 sharp photos while walking a full circle at two heights.
Run structure-from-motion software on the photos to estimate camera poses and a sparse point cloud, and discard photos that fail to register.
Set aside every eighth photo as a test view that the model will never train on.
Train a 3D Gaussian splatting model on the remaining photos, starting from the sparse points, for the standard 30,000 iterations.
Render the held-out test views and compute PSNR against the real photos, then look at the worst images for floaters and blur.
Orbit the scene in a viewer and note where artifacts appear, usually in areas that few photos covered.
它显示了什么
An interactive 3D scene plus a measured test score. PSNR in the mid to high 20s on real scenes is in the range the 2023 splatting paper reports; much lower scores usually mean bad poses, motion blur or changing light during capture.
现实世界的实施
Google Maps' Immersive View shows indoor views of restaurants and cafes built from DSLR photos with a mip-NeRF 360 based model, delivered as 360-degree videos along preset flight paths, according to a 2023 Google Research post.
Turning a walk-around phone or camera capture of a room or object into an interactive 3D Gaussian splat that can be orbited at more than 30 frames per second at 1080p, the target set by the 2023 splatting paper.
Training a radiance field in minutes rather than days with NVIDIA's Instant-NGP, whose 2022 paper reports high-quality results after a matter of seconds of training using fused CUDA kernels.
Generating plausible side and back views of an object from a single photo with Zero-1-to-3, a 2023 diffusion model conditioned on a relative camera rotation, as a starting point for single-image 3D reconstruction.
在包含无界真实场景的 Mip-NeRF 360 数据集上比较新方法,在该基准测试中,3D 高斯泼溅(3D Gaussian Splatting)报告的 PSNR 为 27.21 dB,而 Mip-NeRF 360 为 27.69 dB。
新颖视图合成的未来
Several open problems stand out in the primary literature. The 2023 Gaussian splatting paper names memory as a cost, with hundreds of megabytes per scene and training peaks above 20 GB for large scenes, so compression and streaming are active topics. It also lists artifacts in poorly observed regions and popping during camera motion, which points to better regularization and visibility handling. Google's 2023 Research post on indoor reconstructions names real-time on-device neural rendering, scene segmentation for search and navigation, and outdoor photo collections as open questions, and it chose pre-rendered videos over live rendering because real-time inference was too costly for phones. Dynamic scenes with moving people and changing light remain harder than static ones. Few-view and single-view synthesis, illustrated by Zero-1-to-3 in 2023, depends on generative priors that invent unseen content, so measuring whether generated views are faithful rather than merely plausible is still unsettled. Whether radiance fields, splats or generative models will dominate particular applications is an open question.
付诸实践
为什么这很重要
- 速度与规模. 视觉人工智能可以大规模自动化检查、检测和标记任务。
- 构建选择. 创意团队可以通过更少的手动修改更快地构建概念原型。
- 团队与工作流程. 操作可以使用以前难以处理的图像和视频信号。
留意
- 如果出处不明,肖像权和同意可能会成为法律风险。
- 模型性能可能因光照、人口统计和环境的不同而有所不同。
- 除非监控置信阈值,否则误报可能会被忽视。
后续步骤
- 定义精确度、召回率和错误成本的接受标准。
- 使用符合实际生产条件的数据进行测试。
- 为低置信度或高影响力的预测添加人工审核。
- 跟踪模型漂移并在相机或数据集更改后重新验证。
资料来源与延伸阅读
- arXiv (ECCV 2020)NeRF:将场景表示为神经辐射场以进行视图合成
- arXiv (ACM Transactions on Graphics, 2023)3D Gaussian Splatting for Real-Time Radiance Field Rendering
- arXiv (SIGGRAPH 2022)Instant Neural Graphics Primitives with a Multiresolution Hash Encoding
- arXivMip-NeRF 360: Unbounded Anti-Aliased Neural Radiance Fields
- arXivZero-1-to-3: Zero-shot One Image to 3D Object
- Google ResearchReconstructing indoor spaces with NeRF
不断探索
常见问题
What is Novel View Synthesis?
Novel view synthesis is the task of rendering what a scene would look like from a camera position that was never photographed, using a set of existing photos. Neural radiance fields (NeRF, 2020) and 3D Gaussian splatting (2023) turned it from a research curiosity into a practical way to build explorable 3D scenes from ordinary pictures, with the newer method rendering at 1080p in real time.
Given photos of a scene, what does novel view synthesis try to produce?
新颖的视图合成使用一组具有已知姿势的输入图像,从新的、看不见的视点生成逼真的图像。
神经辐射场 (NeRF) 将 3D 位置和观看方向映射到什么?
NeRF 学习从(位置、方向)到发射颜色和密度的函数,然后沿着光线积分以渲染图像。
NeRF 如何为新视图渲染像素?
对于每个像素,NeRF 投射一条射线,对 3D 点进行采样,查询网络的颜色/密度,并将它们与体积渲染积分进行合成。
What distinguishes 3D Gaussian Splatting's scene representation from an original NeRF-style per-ray network evaluation?
The representations and rendering computations differ; speed and memory depend on their implementation and scene.
为什么 NVS 方法可以再现反射和闪亮的高光?
通过根据观察方向调节颜色,NeRF 和高斯斑点可捕获依赖于视图的效果,例如镜面高光和反射。