3DV 2025
Project Page | Paper | Data | Checkpoints
Chih-Hao Lin1, Bohan Liu1, Yi-Ting Chen2, Kuan-Sheng Chen1,
David Forsyth1, Jia-Bin Huang2, Anand Bhattad1, Shenlong Wang1
1University of Illinois at Urbana-Champaign, 2University of Maryland, College Park

The code has been tested on: - OS: Ubuntu 22.04.4 LTS - GPU: NVIDIA GeForce RTX 4090, NVIDIA RTX A6000 - Driver Version: 535, 545 - CUDA Version: 12.2, 12.3 - nvcc: 11.7
conda create -n urbanir -y python=3.9
conda activate urbanir
pip install -r requirements.txt
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.1+cu117.html
git clone --recursive https://github.com/NVlabs/tiny-cuda-nn.git
Then use your favorite editor to edit tiny-cuda-nn/include/tiny-cuda-nn/common.h and set TCNN_HALF_PRECISION to 0 (see NVlabs/tiny-cuda-nn#51 for details)
cd tiny-cuda-nn/bindings/torch
python setup.py install
pip install models/csrc/
data/ folder.ckpts folder.$ wandb loginscripts/train.sh, which are in the following format:python train.py --config [path_to_config]
ckpts/[dataset]/[exp_name]/*.ckptresults/[dataset]/[exp_name]/valscripts/render.sh, which are in the following format:python render.py --config [path_to_config]
results/[dataset]/[exp_name]/frames, and videos are saved to results/[dataset]/[exp_name]/*.mp4.../last_slim.ckpt is not available, you can either specify path with --ckpt_load [path_to_ckpt] or convert with utility/slim_ckpt.py.scripts/relight.sh, which are in the following format:python render.py --config [path_to_config] \
--light [path_to_light_config] --relight [effect_name]
results/[dataset]/[exp_name]/[effect_name]opt.py, and can be added after training/rendering/relighting script with --param_name value.configs/[dataset]/[scene].txt.configs/light/[scene].txt, and different relighting effects can be produced by changing the configuration.transforms.json).mmseg/run.py in the root folder of mmsegmentation and run.If you find this paper and repository useful for your research, please consider citing:
@article{lin2023urbanir,
title={Urbanir: Large-scale urban scene inverse rendering from a single video},
author={Lin, Zhi-Hao and Liu, Bohan and Chen, Yi-Ting and Forsyth, David and Huang, Jia-Bin and Bhattad, Anand and Wang, Shenlong},
journal={arXiv preprint arXiv:2306.09349},
year={2023}
}
$ claude mcp add urbanir \
-- python -m otcore.mcp_server <graph>