|
1 | | -## [ICLR 2024] USB-NeRF: Unrolling Shutter Bundle Adjusted Neural Radiance Fields |
2 | | -### Code and data will be released soon. |
| 1 | +# USB-NeRF: Unrolling Shutter Bundle Adjusted Neural Radiance Fields |
| 2 | +<!-- ### [Project Page]() | [Video]() | --> |
| 3 | +### [Paper](https://arxiv.org/abs/2310.02687) | [Data](https://drive.google.com/file/d/1ndBlTCaWkQv1rAPXbGSVmUqRACCvfJOl/view?usp=sharing)<br> |
| 4 | +PyTorch implementation of rolling shutter effect correction with NeRF.<br><br> |
| 5 | +[USB-NeRF: Unrolling Shutter Bundle Adjusted Neural Radiance Fields](https://arxiv.org/abs/2310.0268) |
| 6 | + [Moyang Li](https://scholar.google.com/citations?user=Qvu8bNYAAAAJ&hl)\*<sup>1,2</sup>, |
| 7 | + [Peng Wang](https://wangpeng000.github.io/)\*<sup>1,3</sup>, |
| 8 | + [Lingzhe Zhao](https://scholar.google.com/citations?user=mN764NsAAAAJ&hl=en)<sup>1</sup>, |
| 9 | + [Bangyan Liao](https://scholar.google.com/citations?user=0z2qluIAAAAJ&hl)<sup>1,3</sup>, |
| 10 | + [Peidong Liu](https://ethliup.github.io/)✝<sup>1,3</sup>,<br> |
| 11 | + <sup>1</sup>Westlake University, <sup>2</sup>ETH Zurich, <sup>3</sup>Zhejiang University |
| 12 | +\* denotes equal contribution |
| 13 | +✝ denotes corresponding author |
| 14 | +in ICLR 2024 |
| 15 | + |
| 16 | +USB-NeRF is able to correct rolling shutter distortions and recover accurate camera motion trajectory simultaneously under the framework of NeRF, by modeling the physical image formation process of a rolling shutter camera. |
| 17 | + |
| 18 | +## Quickstart |
| 19 | + |
| 20 | +### 1. Setup environment |
| 21 | + |
| 22 | +``` |
| 23 | +git clone https://github.com/WU-CVGL/USB-NeRF |
| 24 | +cd USB-NeRF |
| 25 | +pip install -r requirements.txt |
| 26 | +``` |
| 27 | + |
| 28 | +### 2. Download datasets |
| 29 | + |
| 30 | +You can download the data [here](https://drive.google.com/file/d/1ndBlTCaWkQv1rAPXbGSVmUqRACCvfJOl/view?usp=sharing). |
| 31 | + |
| 32 | +After acquiring the data, your folder structure should look like |
| 33 | +``` |
| 34 | +Dataset/ |
| 35 | + Unreal-RS/ |
| 36 | + Adornment/ |
| 37 | + images/ |
| 38 | + start/ |
| 39 | + mid/ |
| 40 | + groundtruth.txt |
| 41 | + poses_bounds.npy |
| 42 | + BlueRoom/ |
| 43 | + ... |
| 44 | + LivingRoom/ |
| 45 | + ... |
| 46 | + WhiteRoom/ |
| 47 | + ... |
| 48 | + intrinsics.txt |
| 49 | + ... |
| 50 | +``` |
| 51 | +`images` folder contains captured rolling shutter images. `start` and `mid` folder contain global shutter images corresponding to the first and middle scanline, respectively. `groundtruth.txt` file saves the groundtruth poses, while `poses_bounds.npy` file saves the estimated camera poses with rolling shutter images via COLMAP. `intrinsics.txt` saves camera intrinsics (fx, fy, cx, cy). |
| 52 | + |
| 53 | +### 3. Configs |
| 54 | + |
| 55 | +Modify parameters of config file (eg: `configs/Unreal-RS/Adornment_CubicSpline.txt`) if needed. |
| 56 | + |
| 57 | + |
| 58 | +### 4. Training |
| 59 | + |
| 60 | +``` |
| 61 | +python train_usb_nerf.py --config ./configs/Unreal-RS/Adornment_CubicSpline.txt |
| 62 | +``` |
| 63 | + |
| 64 | +After training, you can get global shutter images, optimized camera poses and synthesized novel view images. |
| 65 | + |
| 66 | +## Citation |
| 67 | + |
| 68 | +If you find this useful, please consider citing our paper: |
| 69 | + |
| 70 | +```bibtex |
| 71 | +@article{li2023usb, |
| 72 | + title={USB-NeRF: Unrolling Shutter Bundle Adjusted Neural Radiance Fields}, |
| 73 | + author={Li, Moyang and Wang, Peng and Zhao, Lingzhe and Liao, Bangyan and Liu, Peidong}, |
| 74 | + journal={arXiv preprint arXiv:2310.02687}, |
| 75 | + year={2023} |
| 76 | +} |
| 77 | +``` |
| 78 | + |
| 79 | +## Acknowledgment |
| 80 | + |
| 81 | +The overall framework, metrics computing and camera transformation are derived from [nerf-pytorch](https://github.com/yenchenlin/nerf-pytorch/), [CVR](https://github.com/GitCVfb/CVR) and [BAD-NeRF](https://github.com/WU-CVGL/BAD-NeRF) respectively. We appreciate the effort of the contributors to these repositories. |
0 commit comments