Abstract
The Adaptive Affinity-Graph Network (AAGN) is a novel framework for automatic human body reshaping that prioritizes global structural consistency and fine-grained aesthetic details. By modeling body parts as nodes in a fully connected graph and employing a frequency-aware discriminator, AAGN produces natural-looking edits that outperform previous state-of-the-art methods in both quantitative metrics and human preference.
Introduction
While body-reshaping tools are ubiquitous in social media and advertising, automating the process remains a significant challenge. Most existing methods rely on generating "optical flow" to warp images, but these models typically focus on local transformations—editing an arm or a leg in isolation. This localized approach often leads to two major issues: anatomical inconsistency, where reshaped parts do not match the rest of the torso, and a loss of high-frequency details, resulting in "mushy" textures and blurred edges.
Methodology
The AAGN framework introduces two primary innovations to address these challenges: the Adaptive Affinity-Graph (AAG) block and a Body Shape Discriminator (BSD) with SRM filtering.
Adaptive Affinity-Graph (AAG) Block
Instead of treating the body as a collection of independent pixels, the AAG block models it as a fully connected graph. The system extracts a skeleton map and groups limbs into semantic nodes (e.g., arms, torso, legs). It then utilizes self-attention and cross-attention mechanisms to calculate "affinities" between these nodes. This structural prior ensures that when the model modifies one area, such as slimming a waist, it accounts for the alignment and proportions of connected limbs, maintaining global harmony.
Body Shape Discriminator (BSD) with SRM Filtering
To preserve aesthetic quality and fine details, the authors move beyond simple pixel matching. They implement a discriminator that analyzes the image through an SRM (Steganalysis Rich Model) filter. This filter strips away low-frequency color information to highlight edges and textures. Through adversarial training, the Flow Generator is forced to preserve these high-frequency details—such as skin texture and fabric patterns—ensuring the final output remains photorealistic.
Experimental Results
The model was evaluated on the BR-5K dataset, the only publicly available dataset tailored for human body reshaping, containing 5,000 high-quality portrait photos. AAGN achieved state-of-the-art (SOTA) results across all major benchmarks:
- Quantitative Metrics: AAGN outperformed the previous leading model (FBBR) in SSIM (0.8427), PSNR (26.41), and LPIPS (0.0643).
- Human Preference: In a user study with 20 participants, AAGN was preferred 51.8% of the time, significantly higher than the 32.1% preference for the previous SOTA.
- Efficiency: The model is highly efficient, processing images in approximately 3.54ms on a single RTX 3090, making it suitable for real-time mobile applications.
- Controllability: By utilizing flow generation, the system allows users to manually adjust a "strength" parameter to scale the reshaping effect from subtle to dramatic.
Conclusion
AAGN demonstrates that integrating structural priors via dynamic graphs and focusing on high-frequency data through specialized discriminators can solve the long-standing issues of anatomical inconsistency and detail loss in automated body reshaping. While the system's performance is tied to the accuracy of initial pose estimation, it represents a significant step forward in high-fidelity, structure-aware image manipulation.
Summary updated