Conditional Image-to-Image Translation

Jianxin Lin, Yingce Xia, Tao Qin, Zhibo Chen, Tie-Yan Liu

Introduction

Standard image-to-image (I2I) translation frameworks, such as CycleGAN or DiscoGAN, typically operate as deterministic mappings where a single input image produces a single, fixed output in the target domain. While effective for general domain shifts, these models lack fine-grained control over specific stylistic attributes. For instance, when translating a male face to a female face, the model arbitrarily decides on hair color and style. This paper introduces cd-GAN (conditional dual-GAN), a novel framework designed to bridge this gap by enabling diverse, user-controlled translations using entirely unpaired data.

The cd-GAN Framework

The core innovation of cd-GAN is the ability to translate images by combining the structural content of a source image with the specific stylistic attributes of a reference "conditional" image from the target domain. This allows for "many-to-many" mappings, where a single source image can be transformed into infinite variations simply by changing the reference image.

Feature Decomposition

The model assumes that every image can be decomposed into two distinct components:

  1. Domain-independent features ($x^i$): These represent invariant structural elements, such as the spatial arrangement of facial features or the silhouette of an object.
  2. Domain-specific features ($x^s$): These capture attributes unique to the domain, such as hair texture, skin tone, or the specific material and color of a shoe.

Architecture and Methodology

The system utilizes a dual-learning setup with two encoders ($e_A, e_B$) and two decoders ($g_A, g_B$). To perform a translation from Domain A to Domain B, the model extracts structural features from an image in A and stylistic features from a reference image in B. These are then fused and passed through the decoder $g_B$ to generate the final output.

The cd-GAN architecture illustrating the generation and reconstruction paths using feature decomposition.

To train without paired data, the authors employ a combination of GAN losses to ensure visual realism and reconstruction losses to enforce a "round-trip" constraint. This constraint ensures that if a generated image is translated back to its original domain using the source's original features, the result matches the initial input, confirming that the encoders are capturing meaningful, disentangled information.

Experimental Evaluation

The authors evaluated cd-GAN across three primary tasks:

  • Face-to-Face Translation (CelebA): Changing gender while adopting specific hairstyles and makeup from reference photos.
  • Edges-to-Shoes/Handbags: Generating realistic product images from sketches, guided by the color and texture of a conditional reference image.

Key Results

Qualitative evaluations demonstrate that cd-GAN successfully preserves the source image's geometry (e.g., facial expression or shoe shape) while accurately adopting the fine-grained style of the reference image. In a user study with 17 participants, cd-GAN's outputs were overwhelmingly preferred over baselines like DualGAN, particularly in its ability to integrate conditional information effectively.

Qualitative comparison of cd-GAN against baseline models on the Edges-to-Shoes task, highlighting superior style integration.

Ablation studies further revealed that "skip connections" for domain-specific features are critical. Without them, models often fail to capture the intricate textures and colors provided by the reference image, leading to "muddy" or generic outputs.

Conclusion and Future Work

cd-GAN provides a powerful mechanism for controllable, unsupervised image translation. While the current implementation faces challenges with high-resolution scaling and extreme pose differences between source and reference images, it establishes a robust foundation for applications in fashion design, digital art, and potentially video-to-video synthesis.

Summary updated

BibTeX
@inproceedings{lin2018conditional,
  author = {Jianxin Lin and Yingce Xia and Tao Qin and Zhibo Chen and Tie-Yan Liu},
  title = {{Conditional Image-to-Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00579},
}
Figure