Abstract
TextureGAN is a generative adversarial network (GAN) designed to provide users with fine-grained control over image synthesis through hand-drawn sketches and small texture patches. By allowing users to "drag and drop" material samples onto a sketch, the system realistically propagates textures across objects while maintaining 3D geometry, lighting, and boundaries. This approach addresses the limitations of previous sketch-to-image methods that often produced flat or inconsistent results.
Introduction
While deep learning has significantly advanced sketch-to-image synthesis, achieving precise control over the material properties of generated objects remains a challenge. Existing methods often rely on color strokes, which can lead to "flat" outputs lacking high-resolution, consistent textures. TextureGAN addresses three primary challenges in texture synthesis:
- Propagation: Ensuring a small texture patch spreads across an entire object without bleeding into the background.
- 3D Awareness: Realistically wrapping textures around an object's 3D geometry.
- Shading: Making synthesized textures responsive to ambient lighting and occlusion for photorealism.
Methodology
TextureGAN utilizes a conditional GAN architecture with a 5-channel input: a sketch, a texture patch (intensity and binary location mask), and color information in the Lab color space.
Multi-Pronged Loss Functions
The core innovation is a specialized loss strategy:
- Local Texture Loss ($L_t$): A local texture discriminator compares generated patches to the original input texture. It enforces exact texture matching rather than general realism.
- Lab Color Space Training: By decoupling lightness/texture (L channel) from color (ab channels), the model avoids biases from common color-object pairings in the training data.
- Two-Stage Training: The model first undergoes ground-truth pre-training for reconstruction, followed by fine-tuning on an external database of high-resolution textures (e.g., various leathers) to improve generalization to unseen materials.
Datasets
The researchers evaluated TextureGAN on several object-centric datasets:
- Handbags: ~137k images from the Amazon dataset.
- Shoes: ~50k images from the UT Zappos50K dataset.
- Clothes: Images from DeepFashion and specialized clothing parsing datasets.
- Texture Database: A custom set of 130 high-resolution leather textures for fine-tuning.
Results and Discussion
TextureGAN demonstrates significant improvements in texture fidelity compared to baselines like "Scribbler." It successfully propagates complex patterns, such as leopard print or stripes, while following object contours.
Key Insights
- Local vs. Global Discrimination: While a global discriminator ensures the overall object shape is correct, the local discriminator maintains the structural integrity of the texture grain across the surface.
- Overcoming "Averaging": By applying Gram matrix-based style loss to the L channel, the network avoids the "blurry middle ground" common in standard GANs, prioritizing high-frequency details.
- Interactive Design: The feed-forward nature of the network allows for real-time interaction, making it a viable tool for fashion designers to iterate on material choices.
Limitations
Despite its successes, the model currently focuses on single, object-centric images and can struggle with complex scenes containing multiple overlapping objects. Sparse or ambiguous sketches may also lead to texture "spillage" across boundaries. Furthermore, achieving perfect pixel-to-pixel alignment between the input patch and the output remains a challenge.
Conclusion
TextureGAN introduces a novel way to control image synthesis by combining sketches with local texture patches. By leveraging local texture loss and decoupled color training, it achieves realistic material propagation that respects 3D geometry and lighting, paving the way for more intuitive and powerful creative AI tools.
Summary updated