# Nerfstudio

**Nerfstudio** 是一个开源、模块化的 PyTorch 框架，用于开发、训练和部署[神经辐射场](https://www.edgepedia.org/zh/neural-radiance-field)（Neural Radiance Field，NeRF）方法，由 Matthew Tancik、Ethan Weber 以及以 Angjoo Kanazawa 为核心的伯克利团队同事在 SIGGRAPH 2023 上展示<sup>[1](https://arxiv.org/abs/2302.04264)</sup>。它为实施基于 NeRF 的方法提供了即插即用的组件、实时可视化、用于导入捕获数据的管线，以及用于视频、点云和网格表示的导出工具<sup>[1](https://arxiv.org/abs/2302.04264)</sup>。其模块化设计还促成了 Nerfacto 的开发，这是该项目自己的方法，结合了近期论文中的组件，以平衡速度和质量<sup>[1](https://arxiv.org/abs/2302.04264)</sup>。

| 关键事实 | 详情 |
|---|---|
| 是什么 | 用于 NeRF 研究和部署的模块化 PyTorch 框架，在 Apache-2.0 下开源<sup>[1](https://arxiv.org/abs/2302.04264)</sup><sup> • </sup><sup>[8](https://github.com/nerfstudio-project)</sup> |
| 发表 | SIGGRAPH 2023 会议论文单元，由 Matthew Tancik 和 12 位合著者发表<sup>[1](https://arxiv.org/abs/2302.04264)</sup> |
| 默认 NeRF 方法 | Nerfacto：相机姿态细化、逐图像外观条件化、提案采样、场景收缩和哈希编码<sup>[2](https://docs.nerf.studio/nerfology/methods/nerfacto.html)</sup> |
| 高斯泼溅 | Splatfacto，构建在 gsplat 光栅化后端之上；默认约 6 GB 内存，splatfacto-big 约 12 GB<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup> |
| gsplat 收益 | 与原始 INRIA 高斯泼溅实现相比，训练时间最多减少 10%，内存用量降至四分之一<sup>[4](https://arxiv.org/abs/2409.06765)</sup> |
| 实测速度 | 在一项比较研究中，Splatfacto 在 30,000 次迭代中平均训练时间为 17.19 分钟，而 Nerfacto 为 90.45 分钟<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)</sup> |
| 版本 | v1.0.0 引入了 splatfacto 模型和在 viser 上重写的查看器；最新版本是 v1.1.5<sup>[5](https://github.com/nerfstudio-project/nerfstudio/releases)</sup> |

## 目的与设计

NeRF 研究产生了许多方法，但它们的代码库、数据集加载器和评估协议互不兼容，这使得比较它们变得困难<sup>[1](https://arxiv.org/abs/2302.04264)</sup>。Nerfstudio 通过将 NeRF 管线分解为可重用组件来解决这个问题：读取捕获数据的数据解析器、采样光线或图像的数据管理器、模型、渲染器和优化器，所有这些都可以通过 `ns-train` 及相关工具从命令行进行配置<sup>[2](https://docs.nerf.studio/nerfology/methods/nerfacto.html)</sup>。一个实时网络查看器连接到正在运行的训练任务，该框架还包括用于在标准 Blender 数据集上对方法进行基准测试的脚本<sup>[1](https://arxiv.org/abs/2302.04264)</sup><sup> • </sup><sup>[10](https://docs.nerf.studio/developer_guides/debugging_tools/benchmarking.html)</sup>。

该项目在 nerfstudio-project GitHub 组织下公开开发，其中主仓库约有 12,000 颗星，配套的 gsplat 仓库约有 5,800 颗<sup>[8](https://github.com/nerfstudio-project)</sup>。

## 包含的方法

**Nerfacto** 是该框架用于静态场景真实捕获的默认方法。它不是一篇已发表的论文，而是开发者认为有效的技术的组合：相机姿态细化，通过反向传播损失梯度来纠正未对齐的输入姿态；逐图像外观条件化；提案采样，将样本集中在对渲染贡献最大的地方；场景收缩；以及哈希编码<sup>[2](https://docs.nerf.studio/nerfology/methods/nerfacto.html)</sup>。变体可扩展内存和质量：默认使用约 6 GB，`nerfacto-big` 约 12 GB，`nerfacto-huge` 约 24 GB，还有一个使用深度数据进行监督的 `depth-nerfacto` 变体<sup>[2](https://docs.nerf.studio/nerfology/methods/nerfacto.html)</sup>。

**Splatfacto** 是 Nerfstudio 对 3D 高斯泼溅的实现，这是 INRIA 的 SIGGRAPH 2023 方法，将场景表示为显式的 3D 体积高斯集合，投影或“泼溅”到 2D 图像上并在 GPU 上光栅化<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。由于光栅化速度很快，这种表示比神经辐射场渲染得快得多<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。Splatfacto 这个名字有意将 Nerfstudio 的实现与原始论文区分开来，并且预计随着其他泼溅方法的特性被添加而演变<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。训练时，在可用的情况下，根据 COLMAP 的运动恢复结构点初始化高斯，这比随机初始化效果好得多<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。默认配置使用约 6 GB 内存，而 `splatfacto-big` 用约 12 GB 换取更多高斯和更高质量<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。

文档还列出了 Instant-NGP、原始 NeRF、Mip-NeRF 和 TensoRF 的实现，与这两种方法并列<sup>[9](https://docs.nerf.studio/?trk=public_post_reshare-text)</sup>。

## 数据管线与导出

`ns-process-data` 工具将来自多种来源的捕获转换为 Nerfstudio 格式，使用 COLMAP 和 FFmpeg 进行姿态估计和处理<sup>[7](https://docs.nerf.studio/quickstart/custom_dataset.html)</sup>。支持的输入包括 Record3D iPhone 应用、Android 和 iPhone 上无需 LiDAR 的 KIRI Engine 应用、来自带 LiDAR 的 iPhone 的 Spectacular AI SDK 捕获、OAK-D 相机、RealSense D455/D435i 和 Azure Kinect DK，以及 [RealityCapture](https://www.edgepedia.org/zh/realitycapture) 和 Polycam 导出<sup>[7](https://docs.nerf.studio/quickstart/custom_dataset.html)</sup>。Spectacular AI 的 VISLAM 方法将 IMU 数据与相机和 LiDAR 测量融合，文档将其描述为对于单调环境、快速运动和窄视场等困难数据，比纯基于图像的方法更稳健<sup>[7](https://docs.nerf.studio/quickstart/custom_dataset.html)</sup>。

训练好的模型可导出为视频、点云和网格；高斯泼溅导出为 `.ply` 文件，可被第三方查看器摄取，包括 Polycam Viewer、Playcanvas SuperSplat、Spline 和 Three.js 查看器<sup>[1](https://arxiv.org/abs/2302.04264)</sup><sup> • </sup><sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。目前不支持从训练好的泼溅导出网格和点云<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。

## gsplat 后端

Splatfacto 的光栅化运行在 gsplat 上，这是一个来自同一组织的开源库，具有 PyTorch 兼容的 Python 绑定和优化的 CUDA 内核，在 Apache 2.0 许可证下发布<sup>[4](https://arxiv.org/abs/2409.06765)</sup>。其作者报告称，与原始 INRIA 实现相比，训练时间最多减少 10%，内存用量降至四分之一<sup>[4](https://arxiv.org/abs/2409.06765)</sup>。CUDA 代码在 gsplat 首次运行时编译；遇到问题的 PyTorch 2.0 用户可以从源码安装 gsplat 或升级到 torch 2.1<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。

## 实测性能

一项 2025 年针对汽车和边缘应用的比较研究，使用 NVIDIA RTX 3500 Ada 笔记本电脑 GPU，在五个 Nerfstudio 场景上对两种默认模型进行了 30,000 次迭代训练<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)</sup>。Splatfacto 每个场景训练时间为 13.71 至 26.86 分钟，平均 17.19 分钟，而 Nerfacto 耗时 88.28 至 95.23 分钟，平均 90.45 分钟<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)</sup>。在验证子集上，Splatfacto 的平均得分也更高，SSIM（比较与参考图像结构相似性的图像质量指标）为 0.89 对 0.82，PSNR 为 27.98 对 23.69，尽管每个场景的结果有所不同，LPIPS 平均值相同，均为 0.08<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)</sup>。

同一研究说明了一个实际限制：Splatfacto 的光栅化器需要无畸变图像，因此鱼眼捕获在训练前必须去畸变，而 Nerfacto 使用 OpenCV 鱼眼相机模型直接处理原始鱼眼图像<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)</sup>。

## 生态系统与局限性

该框架的插件设计使其成为研究代码的常见目标。NerfBridge 将[机器人操作系统](https://www.edgepedia.org/zh/robot-operating-system)（ROS）连接到 Nerfstudio，用于从相机流进行实时在线 NeRF 训练，并在四旋翼飞行器上进行了演示<sup>[11](https://arxiv.org/abs/2305.09761)</sup>。Splatfacto-W 将泼溅方法扩展到无约束的照片集<sup>[12](https://arxiv.org/abs/2407.12306)</sup>，NERFIFY 项目将 NeRF 研究论文转换为可训练的 Nerfstudio 插件<sup>[13](https://arxiv.org/abs/2603.00805)</sup>。从业者已将该框架用于从无人机镜头重建到通过其 Blender 插件进行 VFX 合成的任务<sup>[14](https://github.com/ch1bo/drone-reconstruction)</sup>。

已知的局限性被记录而非隐藏。高斯光栅化假设透视相机，因此泼溅不支持鱼眼、等距柱状和正交渲染<sup>[3](https://docs.nerf.studio/nerfology/methods/splat.html)</sup>。

## References

1. [Nerfstudio: A Modular Framework for Neural Radiance Field Development (Tancik et al., arXiv:2302.04264; SIGGRAPH 2023)](https://arxiv.org/abs/2302.04264)
2. [Nerfacto, Nerfstudio documentation](https://docs.nerf.studio/nerfology/methods/nerfacto.html)
3. [Splatfacto, Nerfstudio documentation](https://docs.nerf.studio/nerfology/methods/splat.html)
4. [gsplat: An Open-Source Library for Gaussian Splatting (Ye et al., arXiv:2409.06765)](https://arxiv.org/abs/2409.06765)
5. [Releases, nerfstudio-project/nerfstudio, GitHub](https://github.com/nerfstudio-project/nerfstudio/releases)
6. [A Comparative Study of NeRF and 3D Gaussian Splatting for Automotive and Edge Applications (Raymond & Sistu, IS&T Electronic Imaging 2025)](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/37/15/AVM-114)
7. [Using custom data, Nerfstudio documentation](https://docs.nerf.studio/quickstart/custom_dataset.html)
8. [nerfstudio-project organization, GitHub](https://github.com/nerfstudio-project)
9. [Nerfstudio documentation, Supported Methods](https://docs.nerf.studio/?trk=public_post_reshare-text)
10. [Benchmarking workflow, Nerfstudio documentation](https://docs.nerf.studio/developer_guides/debugging_tools/benchmarking.html)
11. [NerfBridge: Bringing Real-time, Online Neural Radiance Field Training to Robotics (Yu et al., arXiv:2305.09761)](https://arxiv.org/abs/2305.09761)
12. [Splatfacto-W: A Nerfstudio Implementation of Gaussian Splatting for Unconstrained Photo Collections (arXiv:2407.12306)](https://arxiv.org/abs/2407.12306)
13. [NERFIFY: A Multi-Agent Framework for Turning NeRF Papers into Code (arXiv:2603.00805)](https://arxiv.org/abs/2603.00805)
14. [Drone 3D Reconstruction pipeline using COLMAP and Nerfstudio, GitHub](https://github.com/ch1bo/drone-reconstruction)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Deep learning software and hardware › AI for real-time rendering and DLSS

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/nerfstudio

English original: https://www.edgepedia.org/nerfstudio
