Camera Relocalization in Shadow-free Neural Radiance Fields
Shiyao Xu, Caiyun Liu, Yuantao Chen, Zhenxin Zhu, Zike Yan, Yongliang Shi, Hao Zhao, Guyue Zhou
TL;DR
This work tackles camera relocalization under varying lighting and shadow conditions by introducing a two-stage pipeline that normalizes input images to a shadow-free canonical lighting before pose refinement. It leverages a hash-encoded NeRF trained on shadow-free data, and couples this with a shadow-removal preprocessor and a coarse-to-fine pose optimization enhanced by a truncated dynamic low-pass filter and numerical gradient averaging to stabilize learning. The approach yields state-of-the-art results on the SUMAD shadow-urban dataset and NeRF-OSR, demonstrating robust relocalization performance and fast training times. The method's practical impact lies in enabling reliable localization in outdoor, shadow-rich environments, with code and data to be released publicly.
Abstract
Camera relocalization is a crucial problem in computer vision and robotics. Recent advancements in neural radiance fields (NeRFs) have shown promise in synthesizing photo-realistic images. Several works have utilized NeRFs for refining camera poses, but they do not account for lighting changes that can affect scene appearance and shadow regions, causing a degraded pose optimization process. In this paper, we propose a two-staged pipeline that normalizes images with varying lighting and shadow conditions to improve camera relocalization. We implement our scene representation upon a hash-encoded NeRF which significantly boosts up the pose optimization process. To account for the noisy image gradient computing problem in grid-based NeRFs, we further propose a re-devised truncated dynamic low-pass filter (TDLF) and a numerical gradient averaging technique to smoothen the process. Experimental results on several datasets with varying lighting conditions demonstrate that our method achieves state-of-the-art results in camera relocalization under varying lighting conditions. Code and data will be made publicly available.
