DeepPS2: Revisiting Photometric Stereo Using Two Differently Illuminated Images

Ashish Tiwari, Shanmuganathan RamanECCV 2022

Abstract

DeepPS2 is a novel self-supervised deep learning framework designed for photometric stereo (PS) using only two differently illuminated images. By integrating inverse rendering with a cross-image relighting task, the model jointly estimates surface normals, albedo, and lighting directions. Unlike traditional deep learning approaches for PS, DeepPS2 does not require ground truth 3D data for training, making it highly applicable to real-world scenarios where such data is scarce.

Introduction

Photometric Stereo (PS) aims to recover the surface normals of an object from images captured under varying lighting conditions from a fixed viewpoint. Traditionally, this task falls into two categories: Shape from Shading (SfS), which uses a single image but is mathematically ill-posed, and traditional PS, which requires three or more images to be well-posed.

The "PS2" problem—reconstruction using exactly two images—represents a challenging middle ground that is often rank-deficient. Furthermore, most existing deep learning solutions for PS rely on massive datasets with ground truth geometry and known lighting, which are difficult to acquire. DeepPS2 addresses these challenges by proposing a self-supervised framework that learns from the physical consistency of light and geometry.

Methodology

The DeepPS2 framework is built on an inverse-rendering-based architecture that decomposes input images into their constituent physical components.

The DeepPS2 architecture consists of an encoder-decoder setup for normal and albedo estimation, an illumination module, and specialized modules for albedo refinement and image relighting.

Network Architecture

The system utilizes an Hourglass Architecture for the initial estimation of normals and coarse albedo. To handle lighting, the authors employ Light Space Discretization, treating lighting estimation as a classification problem across 25 "bins" rather than a regression task, which improves robustness against noise.

Albedo Refinement and Specularity

To account for non-Lambertian (shiny) surfaces, the model includes an Albedo Refinement Module. It explicitly calculates the "half-vector" between the light and camera and uses positional encoding to help the network capture high-frequency specular highlights, resulting in cleaner albedo maps.

Self-Supervised Relighting Loss

The core innovation is the Self-Supervised Relighting Loss. The network is tasked with "relighting" one input image to match the illumination of the second. This cross-image consistency serves as a powerful supervisory signal, forcing the model to develop a physically accurate understanding of the relationship between shape, material, and light. To stabilize early training, a brief "warm-up" phase using basic least-squares estimates is employed.

Experiments and Results

The model was evaluated on the DiLiGenT benchmark, which contains complex, non-Lambertian objects. DeepPS2 achieved a Mean Angular Error (MAE) of 13.44° in an uncalibrated setting (where light directions are unknown). Notably, it outperformed several state-of-the-art supervised methods when those methods were restricted to only two input images. The model demonstrated significant robustness on objects with complex shadows and inter-reflections, such as the "HARVEST" and "READING" samples.

Key Insights

  • Relighting as Supervision: Forcing the model to transform the lighting of one image to match another provides a deeper geometric understanding than simple reconstruction.
  • Classification over Regression: Predicting discrete light "bins" is more effective for deep networks than regressing precise 3D coordinates.
  • Geometry-Informed Material: Modeling specularities using estimated normals allows the network to "peel away" highlights, improving albedo estimation.

Conclusion and Future Work

DeepPS2 demonstrates that high-quality 3D reconstruction is possible with only two images and a clever self-supervised loss. While the current model requires a weak-supervision warm-up and assumes distant directional lighting, it sets a new standard for the PS2 problem. Future work may explore finer light discretization and adaptations for near-field lighting conditions.

Summary updated

BibTeX
@inproceedings{tiwari2022deepps,
  author = {Ashish Tiwari and Shanmuganathan Raman},
  title = {{DeepPS2: Revisiting Photometric Stereo Using Two Differently Illuminated Images}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20071-7\_8},
}
Figure