HiGarment: Cross-modal Harmony Based Diffusion Model for Flat Sketch to Realistic Garment Image

Junyi Guo, Jingxuan Zhang, Fangyu Wu, Huanda Lu, Qiufeng Wang, Wenmian Yang, Eng Gee Lim, Dongming Lu

TL;DR

This paper introduces HiGarment, a novel diffusion model for generating realistic garment images from flat sketches and text prompts. It addresses the challenge of harmonizing visual sketch information with textual attribute descriptions, enabling more controllable and accurate garment synthesis for the fashion production pipeline.

What Problem Does This Paper Address?

The fashion industry faces a bottleneck in translating 2D flat sketches into physical garment samples. Current methods either focus on early design stages without precise visual guidance or struggle to incorporate detailed textual attributes like fabric texture. This leads to lengthy production cycles and inefficiencies. Existing text-to-image models lack the structural precision of flat sketches, while sketch-based models often fail to capture fine-grained fabric details or allow for easy attribute modification via text. This paper tackles the gap of generating realistic garment images that accurately reflect both the structural information from flat sketches and the detailed attributes from text prompts, a task they term "Flat Sketch to Realistic Garment Image" (FS2RG).

Methods

HiGarment is built upon a diffusion model architecture and introduces two core components to achieve "modality harmony":

  • Multi-modal Semantic Enhancement Mechanism (MMSE): This module aims to improve the representation of fabric attributes. It leverages a fabric sample database to inject fine-grained fabric features that are difficult to capture through text or image encoders alone. It uses a Q-Former-like approach to establish deep semantic connections between visual and textual modalities, enhanced by fabric sample information.
  • Harmonized Cross-Attention Mechanism (HCA): This novel mechanism dynamically balances information from flat sketches and text prompts. It allows the model to selectively favor either the visual sketch or the textual guidance, enabling controllable synthesis. HCA calculates a dynamic weight factor based on the similarity between visual and textual features, guiding the diffusion process to produce either sketch-aligned or text-guided outputs. This addresses situations where text and sketch information might be inconsistent.

Datasets

The paper introduces a new dataset: Multi-Modal Detailed Garment (MMDGarment). This dataset is specifically designed for the FS2RG task and is claimed to be the largest open-sourced multi-modal fashion dataset. It includes:

  • 20,151 garment images with corresponding flat sketches.
  • Detailed text annotations covering fabric types, color categories, and localized detail descriptions.
  • A database of 150 fabric image-text pairs for enhanced fabric representation.
  • A test set of 1,000 text-image pairs, including 845 flat sketches paired with photos.

Key Insights and Ideas

  • Modality Harmony is Crucial: The paper highlights that for tasks like FS2RG, simply aligning image and text features isn't enough. Achieving "modality harmony" – effectively balancing and integrating information from different sources – is key to accurate and controllable generation.
  • Fabric Details are Hard: Capturing fine-grained fabric textures and properties solely through text is challenging for existing models. The MMSE module's use of a fabric sample database is a novel approach to inject this crucial information.
  • Dynamic Control is Necessary: Inconsistencies between flat sketches and text prompts are common. The HCA mechanism's ability to dynamically adjust its focus between visual and textual guidance is essential for handling these conflicts and allowing for user-driven modifications.
  • Specialization Matters: The paper suggests that specialized modules (MMSE and HCA) are more effective for the FS2RG task than general-purpose multi-modal approaches, as demonstrated by their superior performance compared to baselines.

Key Results

  • Quantitative Performance: HiGarment outperforms state-of-the-art methods on the MMDGarment dataset, achieving higher CLIPScore, lower FID, and lower LPIPS. Specifically, it shows a 3.7% improvement in CLIPScore, 20.3% in FID, and 14.5% in LPIPS compared to IP-Adapter [30].
  • Qualitative Results: HiGarment accurately reproduces garment structure, patterns, and fabric details, creating more realistic images. It demonstrates the ability to modify garment attributes globally and locally (e.g., changing colors, adding pockets) and can distinguish between different fabrics.
  • Human and MLLM Evaluation: Both a multi-modal large language model (ChatGPT) and human evaluators (including professional designers) rated HiGarment's generated images highest across various aspects like structure, color, fabric, and details.

Limitations and Future Work

  • Limitations:
    • The paper notes that if a fabric label is not found in their predefined dictionary, the model queries the closest semantic match, which might not always be perfect.
  • The parameter 'a' in the Sigmoid function for HCA needs careful tuning. While they found a range of 0.6 to 1 to be effective, values below 0.6 can lead to diminished localized details.
  • Future Work: The paper's contributions, particularly the new task definition and dataset, along with the HiGarment framework, are presented as a foundation for future advancements in image generation within the fashion domain. The authors suggest their work "highlight[s] its potential to inspire advancements in image generation."

Summary updated

BibTeX
@inproceedings{guo2025higarment,
  author = {Junyi Guo and Jingxuan Zhang and Fangyu Wu and Huanda Lu and Qiufeng Wang and Wenmian Yang and Eng Gee Lim and Dongming Lu},
  title = {{HiGarment: Cross-modal Harmony Based Diffusion Model for Flat Sketch to Realistic Garment Image}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure