Skip to content

the official pytorch implementation of UC-NeRF

Notifications You must be signed in to change notification settings

Yan-0-0-Ye/UC-NeRF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UC-NeRF: Neural Radiance Field for Under-Calibrated Multi-view Cameras in Autonomous Driving

🖼️ Demo

image

📖 Abstract

Multi-camera setups find widespread use across various applications, such as au- tonomous driving, as they greatly expand sensing capabilities. Despite the fast development of Neural radiance field (NeRF) techniques and their wide applica- tions in both indoor and outdoor scenes, applying NeRF to multi-camera systems remains very challenging. This is primarily due to the inherent under-calibration issues in multi-camera setup, including inconsistent imaging effects stemming from separately calibrated image signal processing units in diverse cameras, and system errors arising from mechanical vibrations during driving that affect rela- tive camera poses. In this paper, we present UC-NeRF, a novel method tailored for novel view synthesis in under-calibrated multi-view camera systems. Firstly, we propose a layer-based color correction to rectify the color inconsistency in different image regions. Second, we propose virtual warping to generate more viewpoint-diverse but color-consistent virtual views for color correction and 3D recovery. Finally, a spatiotemporally constrained pose refinement is designed for more robust and accurate pose calibration in multi-camera systems. Our method not only achieves state-of-the-art performance of novel view synthesis in multi- camera setups, but also effectively facilitates depth estimation in large-scale out- door scenes with the synthesized novel views.

🗓️ TODO

  • [✔] Pose Refinement codes
  • Depth prior for virtual warping
  • End-to-end UC-NeRF training
  • bash scripts for training, testing and rendering
  • Pretrained models

🚀 Setup

# Clone the repo.
git clone https://github.com/kcheng1021/UC-NeRF.git
cd nerf

# Make a conda environment.
conda create --name zipnerf python=3.9
conda activate ucnerf

# Install requirements.
pip install -r requirements.txt

# Install other cuda extensions
pip install ./gridencoder

# Install nvdiffrast 
git clone https://github.com/NVlabs/nvdiffrast
pip install ./nvdiffrast

# Install a specific cuda version of torch_scatter 
# see more detail at https://github.com/rusty1s/pytorch_scatter
CUDA=cu113
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html

🚀 Dataset demo

Here we present a sample Waymo scene in Waymo-100613.

The detail tutorial of the preprocessing of Waymo dataset can be refered in StreetSurf.

🚀 Start up

cd nerf

bash scripts/train_waymo.sh

🚀 Pipeline

image

🎫 License

For non-commercial use, this code is released under the LICENSE. For commercial use, please contact Xuejin Chen.

🖊️ Citation

If you find this project useful in your research, please consider cite:

@inproceedings{ucnerf,
  title={UC-NeRF: Neural Radiance Field for Under-Calibrated Multi-view Cameras in Autonomous Driving},
  author={Kai Cheng, Xiaoxiao Long, Wei Yin, Jin Wang, Zhiqiang Wu, Yuexin Ma, Kaixuan Wang, Xiaozhi Chen, Xuejin Chen},
  journal={Arxiv},
  year={2023}
}

Acknowledgements

Thanks to Zip-NeRF-Pytorch for amazing zipnerf pytorch implementation.

About

the official pytorch implementation of UC-NeRF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.0%
  • C 18.0%
  • Python 9.7%
  • Cuda 4.1%
  • CMake 1.5%
  • MATLAB 0.3%
  • Other 0.4%