Project Sites | Paper | Primary contact: Qiangeng Xu
Point-NeRF uses neural 3D point clouds, with associated neural features, to model a radiance field. Point-NeRF can be rendered efficiently by aggregating neural point features near scene surfaces, in a ray marching-based rendering pipeline. Moreover, Point-NeRF can be initialized via direct inference of a pre-trained deep network to produce a neural point cloud; this point cloud can be finetuned to surpass the visual quality of NeRF with 30X faster training time. Point-NeRF can be combined with other 3D reconstruction methods and handles the errors and outliers in such methods via a novel pruning and growing mechanism.
Please cite our paper if you are interested
Point-NeRF: Point-based Neural Radiance Fields.
@inproceedings{xu2022point,
title={Point-nerf: Point-based neural radiance fields},
author={Xu, Qiangeng and Xu, Zexiang and Philip, Julien and Bi, Sai and Shu, Zhixin and Sunkavalli, Kalyan and Neumann, Ulrich},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={5438--5448},
year={2022}
}
Chair | Drums | Lego | Mic | Materials | Ship | Hotdog | Ficus | Avg | |
---|---|---|---|---|---|---|---|---|---|
PSNR | 35.60 | 26.04 | 35.27 | 35.91 | 29.65 | 30.61 | 37.34 | 35.61 | 33.25 |
SSIM | 0.991 | 0.954 | 0.989 | 0.994 | 0.971 | 0.938 | 0.991 | 0.992 | 0.978 |
LPIPSVgg | 0.023 | 0.078 | 0.021 | 0.014 | 0.071 | 0.129 | 0.036 | 0.025 | 0.050 |
LPIPSAlex | 0.010 | 0.055 | 0.010 | 0.007 | 0.041 | 0.076 | 0.016 | 0.011 | 0.028 |
This issue only affacts situations when Point-NeRF uses MVSNet on NeRF-Synthetic Dataset. The Colmap results and results on other datasets are not impacted.
An even more reasonable reconstruction approach should exclude using the knowledge of background color or other point filtering. Therefore, we suggest users to combine PointNeRF with more powerful MVS models, such as TransMVS.
For nerfsynthetic, colmap_nerfsynthetic, tanks&temples, scannet and dtu,
We provide all the checkpoint_files google drive | baidu wangpan; all the images and scores of the test results google drive | baidu wangpan; and video results google drive | baidu wangpan;
We also share the visual results of npbg, nsvf and ibrnet on the Nerf Synthetic dataset generated by our machine google drive; Please cite their papers accordingly if interested.
All the codes are tested in the following environment:
Install the dependent libraries as follows:
pip install torch==1.8.1+cu102 h5py
pip install imageio scikit-image
We develope our code with pytorch1.8.1, pycuda2021.1, and torch_scatter 2.0.8
The layout should looks like this, we provide all data folder here: google_drive, except for scannet (We take it down on Mar 8th 2023, to respect Scannet's policy, please go to Scannet's official website for data.)
pointnerf
βββ data_src
β βββ dtu
β β βββCameras
β β βββDepths
β β βββDepths_raw
β β βββRectified
βββ nerf
β β βββnerf_synthetic
β β βββnerf_synthetic_colmap
βββ TanksAndTemple
βββ scannet
β β βββscans
| β β βββscene0101_04
| β β βββscene0241_01
Or you can download using the official links as follows:
Download the preprocessed DTU training data and Depth_raw from original MVSNet repo and unzip.
Download nerf_synthetic.zip
from here under ``data_src/nerf/''
Follow Neural Sparse Voxel Fields and download Tanks&Temples | download (.zip) | 0* (training) 1* (testing) as: ``data_src/TanksAndTemple/''
Download and extract ScanNet by following the instructions provided at http://www.scan-net.org/. The detailed steps including:
git clone https://github.com/ScanNet/ScanNet.git
python data/download-scannet.py -o ../data_src/scannet/ id scene0101_04
python data/download-scannet.py -o ../data_src/scannet/ id scene0241_01
Process the sens files:
python ScanNet/SensReader/python/reader.py --filename data_src/nrData/scannet/scans/scene0101_04/scene0101_04.sens --output_path data_src/nrData/scannet/scans/scene0101_04/exported/ --export_depth_images --export_color_images --export_poses --export_intrinsics
python ScanNet/SensReader/python/reader.py --filename data_src/nrData/scannet/scans/scene0241_01/scene0241_01.sens --output_path data_src/nrData/scannet/scans/scene0241_01/exported/ --export_depth_images --export_color_images --export_poses --export_intrinsics
We trained MVSNet on DTU. You can Download ''MVSNet'' directory from google drive and place them under '''checkpoints/'''
Download ''init'' directory from google drive. and place them under '''checkpoints/'''
Train for point features of 63 channels (as in paper)
bash dev_scripts/ete/dtu_dgt_d012_img0123_conf_color_dir_agg2.sh
Train for point features of 32 channels (better for per-scene optimization)
bash dev_scripts/ete/dtu_dgt_d012_img0123_conf_agg2_32_dirclr20.sh
After the training, you should pick a checkpoint and rename it to best checkpoint, e.g.:
cp checkpoints/dtu_dgt_d012_img0123_conf_color_dir_agg2/250000_net_ray_marching.pth checkpoints/dtu_dgt_d012_img0123_conf_color_dir_agg2/best_net_ray_marching.pth
cp checkpoints/dtu_dgt_d012_img0123_conf_color_dir_agg2/250000_net_mvs.pth checkpoints/dtu_dgt_d012_img0123_conf_color_dir_agg2/best_net_mvs.pth
These scenes that are selected by MVSNeRF, please also refer their code to understand the metrics calculation.
bash dev_scripts/dtu_test_inf/inftest_scan1.sh
bash dev_scripts/dtu_test_inf/inftest_scan8.sh
bash dev_scripts/dtu_test_inf/inftest_scan21.sh
bash dev_scripts/dtu_test_inf/inftest_scan103.sh
bash dev_scripts/dtu_test_inf/inftest_scan114.sh
(Please visit the project sites to see the original videos of above scenes, which have quality loss when being converted to gif files here.)
You can skip training and download the folders of ''nerfsynth'', ''tanksntemples'' and ''scannet'' here google drive, and place them in ''checkpoints/''.
pointnerf
βββ checkpoints
β βββ init
βββ MVSNet
βββ nerfsynth
βββ col_nerfsynth
βββ scannet
βββ tanksntemples
In each scene, we provide initialized point features and network weights ''0_net_ray_marching.pth'', points and weights at 20K steps ''20000_net_ray_marching.pth'' and 200K steps ''200000_net_ray_marching.pth''
Make sure the ''checkpoints'' folder has ''init'' and ''MVSNet''. The training scripts will start to do initialization if there is no ''.pth'' files in a scene folder. It will start from the last ''.pth'' files until reach the iteration of ''maximum_step''.
Please download the COLMAP data (see above). If there is {maximum_step}.pth checkpoint files in the path, the scripts below will also run test.
Our repo is developed based on MVSNet, NeRF, MVSNeRF, and NSVF.
Please also consider citing the corresponding papers.
The project is conducted collaboratively between Adobe Research and University of Southern California.
The repo is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 2.0, and is restricted to academic use only. See LICENSE.