Training-Free, Identity-Preserving Image Editing for Fashion Pose Alignment and Normalization

Potito Aghilar, Vito Walter Anelli, Michelantonio Trizio, Eugenio Di Sciascio, Tommaso Di NoiaarXiv 2025 · DOI

TL;DR

FashionRepose is a novel, training-free, zero-shot pipeline that automates garment pose alignment (e.g., adjusting sleeve positions) in still-life e-commerce images. By combining off-the-shelf diffusion models with precise computer vision heuristics, it successfully alters garment poses while perfectly preserving fine textures, colors, and brand logos. The system operates in near real-time (~23 seconds per image) and has already been deployed in production by global fashion retailer OVS to process over 30,000 garments.

What Problem Does This Paper Address?

In fashion e-commerce, visual consistency across product catalogs is vital. Retailers often require "normalized" poses—such as flat-lay or still-life garment images with sleeves consistently angled—to create clean, uniform virtual showrooms. Achieving this manually using tools like Photoshop is incredibly labor-intensive and fails to scale.

While generative AI tools like GANs and diffusion models can manipulate images, they struggle with non-rigid transformations (like bending a sleeve) while maintaining absolute identity preservation. Standard diffusion models frequently warp textures, shift colors, or distort brand logos. Furthermore, existing AI solutions typically require extensive domain-specific datasets and costly fine-tuning (e.g., via LoRAs), making them impractical for fast-paced commercial workflows.

Methods

FashionRepose solves this with a modular, training-free pipeline that orchestrates several state-of-the-art pretrained models and classic computer vision algorithms.

Architecture of FashionRepose

The workflow consists of seven main stages:

  1. Long Sleeves Detection: A dual-stage pre-filter uses a fine-tuned VGG16 classifier alongside a semantic refiner (Florence2 + LLaMA3) to automatically detect and skip non-long-sleeve items.
  2. Logo Detection and Suppression: To prevent text and logos from being warped by the generative process, Florence2 localizes them, SAM2 generates precise segmentation masks, and Realistic Vision v5.1 inpaints the regions to temporarily erase them.
  3. Coarse Garment Generation: A custom Blender-based module generates a target skeleton pose and mask. This guides a Stable Diffusion model (conditioned via ControlNet OpenPose, ControlNet Canny, and IP-Adapter Plus) to generate a rough image of the reposed garment at a manageable $512 \times 512$ resolution.
  4. Conditioned Unsampling: Latents from the original logo-suppressed image and the coarse image are blended using a gradient mask and refined through a two-pass diffusion process to ensure smooth transitions.
  5. Source-Target Shape Matching: A mask-guided alignment algorithm calculates scaling factors and positional offsets to perfectly align the generated reposed garment with the original silhouette.
  6. Garment Parts-Composition: A geometric computer vision algorithm identifies the boundaries between the torso and sleeves, seamlessly blending the original, untouched torso with the newly generated sleeves.
  7. Logo Injection: The final composed image is upscaled to $1024 \times 1024$ using 4× Ultrasharp, and the original, high-resolution logos are precisely stitched back into place using the saved masks.

Datasets

Because no dedicated datasets exist for garment reposing, the authors evaluated their pipeline using subsets of popular Virtual Try-On (VTON) datasets, focusing on upper-body garments:

  • DressCode: Used for evaluating general upper-body garments, with a manually sampled subset created specifically to test brand logo preservation.
  • VITON-HD: A high-resolution virtual try-on dataset, also evaluated with a logo-specific subset.
  • OVS Dataset: A proprietary production dataset consisting of 861 long-sleeve still-life product images from the OVS catalog to validate real-world performance.

Key Insights and Ideas

  • Strategic Multi-Resolution Workflow: Diffusion models are highly efficient at $512 \times 512$ pixels for structural manipulation, but commercial logos demand $1024 \times 1024$ fidelity. FashionRepose isolates these requirements: it performs the complex structural reposing at low resolution and handles logo preservation entirely at high resolution.
  • Erase-then-Restore Paradigm: Instead of forcing the diffusion model to maintain complex text and logo geometry during a transformation, the pipeline completely removes the branding, generates the new pose, and pastes the original, unwarped logo back on top.
  • Combining AI with Heuristics: Purely deep-learning-based blending often creates blurry boundaries. FashionRepose uses a deterministic, line-intercept geometry algorithm to find the exact anatomical boundaries between a garment's torso and sleeves for flawless parts-composition.

Key Results

  • Quantitative Superiority: On datasets featuring branded garments, FashionRepose achieved the lowest Fréchet Inception Distance (FID) and significantly outperformed state-of-the-art baselines (like MasaCtrl, TIC, and FPE) in Structural Similarity (SSIM) and the Comprehensive Affinity Measurement Index (CAMI-U).
  • Industrial Efficiency: Running on a workstation equipped with an NVIDIA RTX 4090 GPU, the pipeline processes an image in an average of 22.99 seconds, making near real-time automated editing feasible.
  • Proven Production Scale: The pipeline successfully processed over 30,000 long-sleeve garments for the global fashion firm OVS, drastically reducing the time and cost associated with traditional commercial photoshoots.

Limitations and Future Work

Despite its strong performance, the authors note a few remaining challenges:

  • Complex Textures: The pipeline can occasionally introduce visual artifacts, such as duplicated sleeves or mismatched patterns, when processing garments with highly intricate or complex textures.
  • Mask Boundary Precision: If the generated masks suffer from minor alignment errors or occlusions, it can result in visible seams or small gaps in the final blended image.
  • Logo Misclassification: Occasionally, non-logo elements (such as unique necklines or tags) are falsely identified as logos, leading to misplaced reinjections.

Future work will focus on improving logo classification accuracy, enhancing segmentation fidelity, and expanding the pipeline to support a wider variety of garment types beyond long-sleeve tops.

Summary updated

BibTeX
@misc{aghilar2025training,
  author = {Potito Aghilar and Vito Walter Anelli and Michelantonio Trizio and Eugenio Di Sciascio and Tommaso Di Noia},
  title = {{Training-Free, Identity-Preserving Image Editing for Fashion Pose Alignment and Normalization}},
  year = {2025},
  eprint = {2501.13692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.13692},
}
Figure