Skip to main content
QUICK REVIEW

[Paper Review] 2D Image Relighting with Image-to-Image Translation

Paul Gafton, Erick Maraz|ArXiv.org|Jun 14, 2020
Generative Adversarial Networks and Image SynthesisComputer Science19 references9 citations
TL;DR

This paper proposes a GAN-based image-to-image translation approach for 2D image relighting using the pix2pix framework, trained on the VIDIT dataset to transfer light direction from any input to one of eight predefined positions (N, NE, E, etc.). The method achieves reasonable shadow and lighting consistency without geometric priors, with PSNR values ranging from 20.56 dB to 22.24 dB across target directions.

ABSTRACT

With the advent of Generative Adversarial Networks (GANs), a finer level of control in manipulating various features of an image has become possible. One example of such fine manipulation is changing the position of the light source in a scene. This is fundamentally an ill-posed problem, since it requires understanding the scene geometry to generate proper lighting effects. This problem is not a trivial one and can become even more complicated if we want to change the direction of the light source from any direction to a specific one. Here we provide our attempt to solve this problem using GANs. Specifically, pix2pix [arXiv:1611.07004] trained with the dataset VIDIT [arXiv:2005.05460] which contains images of the same scene with different types of light temperature and 8 different light source positions (N, NE, E, SE, S, SW, W, NW). The results are 8 neural networks trained to be able to change the direction of the light source from any direction to one of the 8 previously mentioned. Additionally, we provide, as a tool, a simple CNN trained to identify the direction of the light source in an image.

Motivation & Objective

  • To enable automated, controllable relighting of 2D images by changing the light source direction without requiring geometric priors or depth maps.
  • To address the ill-posed nature of relighting by leveraging GANs to learn realistic lighting transitions from synthetic data.
  • To develop a system that generalizes across diverse scenes while preserving global image consistency and shadow structure.
  • To evaluate the feasibility of end-to-end image-to-image translation for relighting, bypassing complex 3D reconstruction pipelines.
  • To provide a lightweight, trainable tool for artists and photographers to explore lighting variations efficiently in post-processing.

Proposed method

  • Trained eight separate pix2pix GAN models, each specialized to transfer lighting from any input direction to one of eight target directions (N, NE, E, SE, S, SW, W, NW).
  • Utilized the synthetic VIDIT dataset, which provides images of the same scene under 8 light source positions and 5 color temperatures, with ground-truth lighting consistency.
  • Preprocessed images into paired input-output format required by pix2pix, using constant 4500K temperature for relighting experiments.
  • Applied standard pix2pix training with adversarial loss, L1 reconstruction loss, and batch normalization, using default hyperparameters for best performance.
  • Trained a separate 8-class CNN classifier to predict light direction from input images, using Adam optimizer and variable learning rate.
  • Monitored training via loss curves and visual samples to select optimal hyperparameters and assess model convergence.

Experimental results

Research questions

  • RQ1Can image-to-image translation with GANs effectively solve the ill-posed problem of 2D image relighting without geometric priors?
  • RQ2How well can a GAN-based model generalize to transfer light direction across diverse scenes while preserving shadow structure and global consistency?
  • RQ3What is the impact of limited shadow information and lack of indirect lighting on the quality of generated relit images?
  • RQ4To what extent can a lightweight CNN classifier accurately predict light direction from a single image, and how robust is it to directional ambiguity?
  • RQ5Can a purely image-based approach outperform or match 3D-prior-based methods in terms of visual realism and directional accuracy?

Key findings

  • The relighting networks achieved PSNR values between 20.56 dB (W target) and 22.24 dB (S target), indicating moderate to high reconstruction fidelity.
  • Shadow casting was generally accurate for strong directional lighting, but dark or complex shadows were poorly recovered due to low detail and lack of indirect lighting.
  • Artificial scenes with many straight lines showed artifacts, suggesting challenges in preserving geometric consistency under transformation.
  • The light direction classifier achieved 65% accuracy within a 45-degree range and 97% accuracy within a 90-degree range, indicating strong directional generalization.
  • Training evolution showed gradual improvement, with visible convergence after 500–750 epochs, though full training (1000 epochs) was needed for optimal results.
  • Replacing geometric priors with monocular depth estimation led to 'soap film' artifacts and poor shadow quality, highlighting limitations of current depth estimation in side-view scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.