Attribute-Guided Sketch Generation

Hao Tang, Xinya Chen, Wei Wang, Dan Xu, Jason J. Corso, Nicu Sebe, Yan Yan

Introduction

The Attribute-Guided Sketch Generative Adversarial Network (ASGAN) is a novel framework designed to bridge the gap between simple image-to-image translation and semantic attribute manipulation. While standard models can convert a photo to a sketch, they often fail when tasked with simultaneously adding new features—such as glasses or facial hair—that were not present in the original image. ASGAN addresses this by utilizing a specialized "W-shaped" generator architecture and a multi-discriminator setup to produce realistic, identity-preserving sketches with accurate attribute integration.

Methodology: The W-Net Architecture

The core innovation of ASGAN is the W-net Generator, which decomposes the complex task into two sub-problems: attribute generation and sketch translation.

Generator Components

The W-net consists of two primary networks arranged in a "W" configuration:

  1. Attribute Generation ($G_a$): An Encoder-Decoder network that takes the source face and an attribute label (e.g., "glasses") to generate an "attributed face" in the photo domain.
  2. Sketch Generation ($G_s$): A U-net that receives the output from $G_a$ and translates it into the final sketch domain.
Detailed W-Net architecture diagram.

To optimize the model, the authors implement weight sharing between the decoder of $G_a$ and the encoder of $G_s$. This design choice forces the model to learn a shared feature representation, reducing the total parameter count by 25% compared to two independent networks.

Specialized Discriminators

To ensure high-quality results, ASGAN employs two distinct discriminators:

  • Residual Discriminator ($D_a$): Instead of evaluating the entire image, $D_a$ focuses on the residual (the difference) between the input and the attributed face. This makes the model highly sensitive to the fine details of the added attributes.
  • Triplex Discriminator ($D_s$): This component evaluates the consistency between the original face, the attributed face, and the final sketch, ensuring that identity and semantic features are preserved across domains.

The AFPS Dataset

Training such a model requires paired data that links photos, attributes, and sketches. The authors introduced the Attribute Face Photo & Sketch (AFPS) dataset, containing 8,804 images. Since real-world pairs of "person without glasses" and "sketch with glasses" are scarce, the researchers used photo-editing software to synthetically add attributes like glasses, beards, and bow ties to existing face datasets (CUFS, CUFSF, etc.), creating ground-truth pairs for supervised learning.

Evaluation and Results

ASGAN was evaluated against popular baselines like Pix2pix and standard Encoder-Decoder networks.

Quantitative Performance

Using the Feature-Level Similarity Score (FLSS)—a metric proposed by the authors that uses SIFT features to match geometry and identity—ASGAN outperformed its competitors. FLSS is designed to be faster and more accurate for artistic domains like sketching compared to traditional pixel-level metrics. On the CUFS dataset, ASGAN achieved an FLSS of 0.2534 and an SSIM of 0.6249, compared to Pix2pix's 0.2431 and 0.6127, respectively.

Human Perception

A user study conducted via Amazon Mechanical Turk (AMT) confirmed these findings. Participants were asked to distinguish between real and generated attributes. ASGAN's outputs were perceived as "real" 42.7% of the time on the CUFS dataset, surpassing the 40.1% achieved by Pix2pix.

Conclusion and Future Directions

ASGAN demonstrates that joint learning of attribute manipulation and domain translation leads to superior results. By focusing on residuals and shared features, the model maintains sharp details and semantic accuracy. While currently reliant on synthetic training data, the framework shows great promise for forensic applications and general image editing tasks like face colorization and completion. Future work may expand the system to handle more complex attributes such as aging or emotional expressions.

Summary updated

BibTeX
@inproceedings{tang2019attribute,
  author = {Hao Tang and Xinya Chen and Wei Wang and Dan Xu and Jason J. Corso and Nicu Sebe and Yan Yan},
  title = {{Attribute-Guided Sketch Generation}},
  booktitle = {FG},
  year = {2019},
  doi = {10.1109/fg.2019.8756586},
}

Loading related content...

Figure