Any2AnyTryon: Leveraging Adaptive Position Embeddings for Versatile Virtual Clothing Tasks

Hailong Guo, Bohan Zeng, Yiren Song, Wentao Zhang, Jiaming Liu, Chuang Zhang

TL;DR

This paper introduces Any2AnyTryon, a novel framework for versatile virtual clothing tasks that leverages adaptive position embeddings within a diffusion model architecture. It addresses the limitations of existing methods by enabling mask-free, multi-task virtual try-on with improved generalization and quality, even for "in-the-wild" images.

What Problem Does This Paper Address?

Virtual Try-On (VTON) aims to realistically place a garment onto a person's image. However, current methods often struggle with:

  • Data Scarcity: A lack of paired garment-model data limits generalization.
  • Task Specificity: Existing models are typically designed for a single task (e.g., only virtual try-on, or only garment reconstruction).
  • Input Limitations: Many methods rely on masks, poses, or other pre-processing steps, making them less user-friendly and less effective on real-world images ("in-the-wild").
  • Generalization: Difficulty in handling diverse garment styles, image sizes, and complex scenarios.

This paper tackles these issues by proposing a unified, mask-free framework that can handle multiple virtual clothing tasks with flexible inputs.

Methods

The core of Any2AnyTryon is built upon a diffusion transformer (DiT) architecture, specifically leveraging the FLUX.1 model. Key innovations include:

  • Unified Framework: Any2AnyTryon integrates three tasks: virtual try-on, model generation, and garment reconstruction within a single model.
  • Adaptive Position Embedding: This novel technique adjusts position embeddings based on both textual instructions and image conditions. It's crucial for aligning input garment and model images with the target output, ensuring pixel-level correspondence and preserving garment-agnostic regions. This is achieved by encoding condition ID, height, and width.
  • Clean Condition Latents: Unlike some prior methods that add noise to input conditions, Any2AnyTryon uses "clean" latents. This helps preserve the original background and model appearance, leading to more realistic results.
  • Mask-Free Approach: The framework eliminates the need for segmentation masks, poses, or parsing results, relying instead on textual instructions and image inputs.

Datasets

  • LAION-Garment: A new, large-scale, open-source dataset curated by the authors. It combines data from existing VTON datasets (VITON-HD, DressCode, DeepFashion2, LRVS-Fashion) and crawled internet images. Crucially, it includes garment and model images with corresponding user textual editing instructions, covering both "in-the-shop" and "in-the-wild" scenarios. The dataset was expanded using techniques like image inpainting and GPT-40 for quality selection, and Florence2 for generating task-specific user instructions.
  • VITON-HD: Used for training and evaluation of garment reconstruction and model-free virtual try-on tasks.

Key Insights and Ideas

  • Adaptive Position Embeddings are Key: The paper highlights that standard positional encodings struggle with complex conditional tasks. Their adaptive approach is critical for achieving precise spatial alignment between diverse input conditions and the generated output, enabling better VTON.
  • Mask-Free is the Future: By removing the reliance on masks and poses, Any2AnyTryon significantly improves user-friendliness and applicability to real-world scenarios.
  • Unified Models are More Efficient: Integrating multiple VTON-related tasks into a single framework simplifies the pipeline and potentially improves overall performance through shared representations.
  • "Clean" Latents Matter for Realism: Using noise-free input conditions for garments helps maintain the integrity of the original image, leading to more natural-looking results.

Key Results

  • Superior Performance: Any2AnyTryon outperforms existing state-of-the-art methods across various metrics, including SSIM, MS-SSIM, CW-SSIM, LPIPS, FID, CLIP-FID, KID, and DISTS, particularly on the VITON-HD dataset. For instance, it achieves a significantly lower FID and KID score compared to other methods.
  • High-Quality Generation: Qualitative results demonstrate the model's ability to generate high-fidelity, realistic outfitted images with fine details, accurately matching the input garments.
  • Versatile Capabilities: The model successfully handles multiple tasks (virtual try-on, garment reconstruction, try-on in layers) and can process inputs of varying sizes and resolutions.
  • Ablation Studies: Experiments confirm the effectiveness of both the adaptive position embedding and the clean condition latent strategies, showing significant performance degradation when either is removed.

Limitations and Future Work

  • Limitations: The paper acknowledges that while their method significantly improves generalization, challenges remain in complex generation scenarios. The effectiveness of the "clean latent" approach is noted to degrade if not properly masked.
  • Future Work: The authors suggest that their framework's flexibility and scalability open promising pathways for advancing virtual try-on systems toward practical deployment. Further exploration into handling even more complex "in-the-wild" scenarios and diverse garment types could be future directions.

Summary updated

BibTeX
@inproceedings{guo2025any,
  author = {Hailong Guo and Bohan Zeng and Yiren Song and Wentao Zhang and Jiaming Liu and Chuang Zhang},
  title = {{Any2AnyTryon: Leveraging Adaptive Position Embeddings for Versatile Virtual Clothing Tasks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure