cFineGAN: Unsupervised multi-conditional fine-grained image generation

Gunjan Aggarwal, Abhishek SinhaarXiv 2019 · arXiv

Abstract

Controlling the specific attributes of images generated by Generative Adversarial Networks (GANs) remains a significant challenge in computer vision. While standard conditional GANs often rely on single inputs like text or class labels, fine-grained control—such as combining the shape of one object with the texture of another—is difficult due to the inherent "texture bias" of deep learning models. This paper introduces cFineGAN, an unsupervised pipeline that performs "image surgery" to achieve multi-conditional fine-grained image synthesis. By leveraging a shape-biased neural network and a retrieval-based encoding strategy, cFineGAN successfully disentangles and recombines object attributes without requiring labeled training pairs.

The Challenge of Disentanglement

Generative models have reached a point where they can produce highly realistic images, but "disentanglement"—the ability to separate independent factors like shape, texture, and background—remains elusive. Most deep learning architectures are notoriously "texture-greedy"; when presented with an image, they prioritize color patterns and local textures over global geometric structures. This bias makes it difficult for a model to understand that a bird's silhouette is distinct from its feather pattern. Previous attempts at multi-conditional synthesis often resulted in "hybrid" images where the intended shape was lost to the dominant texture of the reference image.

Methodology: Overcoming Texture Bias

cFineGAN builds upon the FineGAN framework, which is designed to disentangle background, shape, and texture in an unsupervised manner. The cFineGAN pipeline introduces a three-step process to perform attribute transfer between two real-world input images ($I_1$ for texture and $I_2$ for shape):

  1. Texture Extraction: The system extracts a "texture code" ($T$) from $I_1$ by searching a gallery of images generated by a pre-trained FineGAN. It identifies the closest match within a standard ResNet-50 embedding space.
  2. Shape Extraction: To extract the "shape code" ($S$) from $I_2$, the researchers utilize a shape-biased ResNet-50. Unlike standard models, this network is trained on stylized data with randomized textures, forcing it to focus exclusively on silhouettes and geometry.
  3. Synthesis: The extracted codes ($T$ and $S$) are passed to the FineGAN generator to produce the final output image ($O$).
Comparison of shape extraction using standard ResNet-50 versus the shape-biased ResNet-50 used in cFineGAN.

As shown in the figure above, the shape-biased model is critical. While a standard ResNet-50 often fails to capture the correct pose or silhouette when distracted by complex textures, the shape-biased variant accurately recovers the underlying geometry, leading to much more faithful reconstructions.

Results and Evaluation

The model was evaluated on three benchmark datasets: CUB-200-2011 (birds), Stanford Dogs, and UT Zappos50k (shoes). These datasets were chosen for their distinct fine-grained features, ranging from intricate feather patterns to varied footwear silhouettes.

Quantitative Performance

Quantitatively, the shape-biased ResNet-50 significantly outperformed the baseline. In shape recovery tests, the biased model achieved an accuracy of 86.90%, compared to just 70.75% for the standard ResNet-50. This improvement confirms that removing texture information during the encoding phase is essential for accurate shape identification.

Qualitative Synthesis

Qualitatively, cFineGAN demonstrates a remarkable ability to transfer complex textures onto new shapes while maintaining realism. For instance, the model can take the iridescent blue texture of a kingfisher and apply it to the silhouette of a soaring gull.

Multi-conditional generation results across bird, shoe, and dog datasets, demonstrating successful shape and texture disentanglement.

As illustrated in the results grid, cFineGAN handles the "domain shift" between real-world images and GAN-generated images effectively. By treating encoding as a retrieval task—finding the best fit within the GAN's existing capabilities—the authors bypassed the need for complex, supervised encoder training.

Conclusion and Future Directions

cFineGAN provides a robust, unsupervised solution for fine-grained image manipulation. By addressing the texture bias of standard neural networks, it enables a level of creative control previously difficult to achieve without extensive manual labeling. While the current "brute force" search for codes can be computationally intensive, the success of this retrieval-based approach opens new doors for multi-conditional synthesis. Future work may extend this framework to include additional conditions such as pose, lighting, and background, further empowering users in the realm of synthetic media generation.

Summary updated

BibTeX
@misc{aggarwal2019cfinegan,
  author = {Gunjan Aggarwal and Abhishek Sinha},
  title = {{cFineGAN: Unsupervised multi-conditional fine-grained image generation}},
  year = {2019},
  eprint = {1912.05028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.05028},
}
Figure