Fashion Matrix: Editing Photos by Just Talking

Zheng Chong, Xujie Zhang, Fuwei Zhao, Zhenyu Xie, Xiaodan LiangarXiv 2023 · DOI

Abstract

Fashion Matrix is a hierarchical AI agent system designed for precise, fine-grained fashion photo editing through natural language dialogue. By orchestrating Large Language Models (LLMs) with specialized computer vision tools, the system enables complex garment manipulations—including replacement, recoloring, addition, and removal—while preserving the subject's identity and pose.

Introduction

While general-purpose image generation models like Stable Diffusion have revolutionized visual content creation, they often lack the "surgical" precision required for fashion-specific tasks. A request to "change this shirt to a red silk blouse" in a standard model frequently results in unintended changes to the person’s face, background, or pose. Existing systems often lack dedicated semantic perception of the human body, leading to artifacts or inconsistent edits.

Overview of the Fashion Matrix conversational editing process.

Fashion Matrix addresses these challenges by creating a system that understands both the nuances of human language and the specific geometry of the human body.

System Architecture

The authors propose a hierarchical architecture composed of three specialized modules:

  1. Fashion Assistant: Acting as the "front desk," this module uses an LLM to engage in multi-round dialogue, clarifying user requirements and maintaining context throughout the editing session.
  2. Fashion Designer: Serving as the "logic controller," it decomposes complex requests into discrete tasks such as replacement, recoloring, addition, or removal. It utilizes BLIP for image understanding and standardizes prompts for the generation stage.
  3. AutoMasker: The "eyes" of the system, this component combines Graphonomy (human parsing) and DensePose (3D surface mapping) to create a high-resolution CoSegmentation map. This allows the system to identify specific pixels belonging to various body parts or garments. For open-vocabulary items, it integrates Grounded-SAM.

The final image generation is performed by Stable Diffusion (Realistic Vision V4.0) controlled by ControlNet variants to maintain structural integrity.

Key Insights

  • Hierarchical Modularity: Separating dialogue, logic, and execution prevents "overloading" the LLM, making the pipeline more robust and easier to debug.
  • CoSegmentation: By fusing 2D parsing with 3D pose data, the system can infer body parts even when occluded, which is essential for tasks like adding a jacket over a shirt.
  • LLM as Task Planner: The study highlights that LLM accuracy in task classification scales significantly with model size, with 13B parameter models outperforming 7B versions.

Results and Evaluation

Fashion Matrix was evaluated against a benchmark of 220 user requirements. It significantly outperformed baselines like Text2Human and FICE. Quantitative results showed a CLIP Score of 27.78 and an Inception Score (IS) of 3.14, indicating superior image quality and text alignment.

Detail of a final edit showing garment replacement and hair color change.

In head-to-head comparisons, humans rated Fashion Matrix's results as "Natural" 55.33% of the time, more than double the rate of previous methods. The system achieved a 46.67% success rate in matching user descriptions, nearly doubling the performance of existing benchmarks.

Conclusion

Fashion Matrix demonstrates the power of combining LLMs with domain-specific vision tools for complex image editing. While the system is currently specialized for human-centric fashion photos and can be subject to the stochastic nature of diffusion models, it sets a new standard for conversational visual editing. Future work may involve optimizing LLMs specifically for the fashion domain to further enhance semantic precision.

Summary updated

BibTeX
@misc{chong2023fashion,
  author = {Zheng Chong and Xujie Zhang and Fuwei Zhao and Zhenyu Xie and Xiaodan Liang},
  title = {{Fashion Matrix: Editing Photos by Just Talking}},
  year = {2023},
  eprint = {2307.13240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.13240},
}
Figure