Là một dự án mã nguồn mở, yenchenlin/nerf-pytorch đã đạt 6.1k sao trên GitHub, ngôn ngữ Python. A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
NeRF (Neural Radiance Fields) is a method that achieves state-of-the-art results for synthesizing novel views of complex scenes. Here are some videos generated by this repository (pre-trained models are provided below):
This project is a faithful PyTorch implementation of NeRF that reproduces the results while running 1.3 times faster. The code is based on authors' Tensorflow implementation here, and has been tested to match it numerically.
Installation
git clone https://github.com/yenchenlin/nerf-pytorch.git
cd nerf-pytorch
pip install -r requirements.txt
Dependencies (click to expand)
Dependencies
PyTorch 1.4
matplotlib
numpy
imageio
imageio-ffmpeg
configargparse
The LLFF data loader requires ImageMagick.
You will also need the LLFF code (and COLMAP) set up to compute poses if you want to run on your own real data.
How To Run?
Quick Start
Download data for two example datasets: lego and fern
bash download_example_data.sh
To train a low-res lego NeRF:
python run_nerf.py --config configs/lego.txt
After training for 100k iterations (~4 hours on a single 2080 Ti), you can find the following video at logs/lego_test/lego_test_spiral_100000_rgb.mp4.
To train a low-res fern NeRF:
python run_nerf.py --config configs/fern.txt
After training for 200k iterations (~8 hours on a single 2080 Ti), you can find the following video at logs/fern_test/fern_test_spiral_200000_rgb.mp4 and logs/fern_test/fern_test_spiral_200000_disp.mp4
More Datasets
To play with other scenes presented in the paper, download the data here. Place the downloaded dataset according to the following directory structure:
replace {DATASET} with trex | horns | flower | fortress | lego | etc.
Pre-trained Models
You can download the pre-trained models here. Place the downloaded directory in ./logs in order to test it later. See the following directory structure for an example:
Tests that ensure the results of all functions and training loop match the official implentation are contained in a different branch reproduce. One can check it out and run the tests:
git checkout reproduce
py.test
Method
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
Ben Mildenhall*1,
Pratul P. Srinivasan*1,
Matthew Tancik*1,
Jonathan T. Barron2,
Ravi Ramamoorthi3,
Ren Ng1 1UC Berkeley, 2Google Research, 3UC San Diego
*denotes equal contribution
A neural radiance field is a simple fully connected network (weights are ~5MB) trained to reproduce input views of a single scene using a rendering loss. The network directly maps from spatial location and viewing direction (5D input) to color and opacity (4D output), acting as the "volume" so we can use volume rendering to differentiably render new views
Citation
Kudos to the authors for their amazing results:
@misc{mildenhall2020nerf,
title={NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis},
author={Ben Mildenhall and Pratul P. Srinivasan and Matthew Tancik and Jonathan T. Barron and Ravi Ramamoorthi and Ren Ng},
year={2020},
eprint={2003.08934},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
However, if you find this implementation or pre-trained models helpful, please consider to cite:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/yenchenlin/nerf-pytorch là nguồn chính thức.
yenchenlin/nerf-pytorch có phải mã nguồn mở không?
Có — yenchenlin/nerf-pytorch phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/yenchenlin/nerf-pytorch.
yenchenlin/nerf-pytorch có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho yenchenlin/nerf-pytorch. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
yenchenlin/nerf-pytorch có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho yenchenlin/nerf-pytorch. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
yenchenlin/nerf-pytorch còn đang phát triển không?
Commit gần nhất trên yenchenlin/nerf-pytorch là 2.3 năm trước (theo timestamp GitHub). Repo có 1.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
yenchenlin/nerf-pytorch dùng license gì?
yenchenlin/nerf-pytorch phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về nerf-pytorch?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về nerf-pytorch.