Automatic Generation of Fashion Images Using Prompting in Generative Machine Learning Models

Georgia Argyrou, Angeliki Dimitriou, Maria Lymperaiou, Giorgos Filandrianos, Giorgos Stamou

Introduction

The fashion industry operates at a high velocity, with trends shifting faster than traditional machine learning models can be retrained. While generative AI has shown promise in creative fields, "intelligent fashion"—the automated generation of complete, aesthetically pleasing outfits tailored to specific body types and occasions—remains a complex challenge. This research explores a "pre-train, prompt, and predict" paradigm, bypassing expensive fine-tuning by using advanced prompting strategies to inject domain-specific knowledge into general-purpose models.

Methodology: A Modular Pipeline

The proposed system separates text generation from image synthesis to maximize control and flexibility. The process begins with an input triplet consisting of Style, Occasion, and Wearer Type. These variables are processed by a Large Language Model (LLM), such as Mistral-7B or Falcon-7B, using one of four prompting strategies:

  1. Zero-Shot (ZS): A direct request for an outfit description.
  2. Few-Shot (FS): Providing the model with similar examples retrieved from a database via cosine similarity.
  3. Chain-of-Thought (CoT): A multi-step reasoning process where the model first identifies colors and textures before drafting the final description.
  4. Retrieval-Augmented Generation (RAG): Incorporating external context from fashion encyclopedias and blogs to ensure contemporary relevance.
Overview of the four prompting strategies: Zero-shot, Few-shot, Chain-of-Thought, and RAG.

The resulting textual description is then passed to a Stable Diffusion model (specifically the epiCRealism checkpoint) to generate the final high-quality visual.

Experimental Setup and Results

The researchers evaluated the pipeline using the "fashion-style-instruct" dataset, generating 200 unique triplets ranging from simple gender-based requests to complex combinations involving specific body shapes.

Human Evaluation

A comprehensive survey was conducted to assess the quality of the generated outputs across several dimensions: style alignment, occasion suitability, wearer suitability, creativity, aesthetic appeal, and cohesion.

Human evaluation results and participant demographics. The bar chart compares the performance of ZS, FS, CoT, and RAG across key metrics.

Key findings from the qualitative analysis include:

  • Knowledge Injection is Key: RAG and Few-Shot techniques were consistently preferred by evaluators, suggesting that LLMs perform best when "anchored" by external facts or examples.
  • High Suitability: The system achieved a mean rating of 4.4/5 for wearer suitability, indicating strong alignment with specified body types.
  • The Text-Image Gap: Participants often rated the textual descriptions higher than the final images, highlighting a remaining challenge in perfectly translating nuanced fashion concepts into visual renders.

Conclusion

This work demonstrates that sophisticated prompting is a viable, resource-efficient alternative to fine-tuning for specialized domains like fashion. By leveraging RAG and CoT, generative models can act as effective fashion consultants. Future improvements will focus on integrating real-time social media data and structural ontologies to further refine the visual logic and trend-awareness of the generated outfits.

Summary updated

BibTeX
@inproceedings{argyrou2024automatic,
  author = {Georgia Argyrou and Angeliki Dimitriou and Maria Lymperaiou and Giorgos Filandrianos and Giorgos Stamou},
  title = {{Automatic Generation of Fashion Images Using Prompting in Generative Machine Learning Models}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  url = {https://openreview.net/forum?id=xm5VPeHX6D},
}
Figure