Introduction
Generating highly customized human images remains a significant challenge in the field of diffusion models. While text-to-image models offer broad creative freedom, they often lack fine-grained spatial control. Conversely, subject-driven models typically rely on a single reference image, making it difficult to combine elements from multiple sources—such as a specific shirt from one image, pants from another, and a face described by text—into a single, spatially accurate composition.
ComposeAnyone addresses these limitations by introducing a novel framework that decouples multimodal conditions. By allowing users to specify different body parts and garments through a mix of text, reference images, and simple geometric layouts, it enables precise and customizable character generation without the "feature confusion" or "bleeding" common in existing models.
Methodology
ComposeAnyone is built upon the Stable Diffusion architecture, initialized with weights from InstructPix2Pix. It introduces several key innovations to handle complex, decoupled inputs:
Hand-Drawn Layouts
Unlike models that require dense segmentation maps or complex pose skeletons, ComposeAnyone utilizes simple, color-coded geometric shapes. Ellipses and rectangles define the spatial boundaries for the face, upper body, lower body, and footwear. This approach makes the tool accessible to non-technical users while providing sufficient guidance for the diffusion process.
Decoupled Multimodal Inputs
The framework supports a flexible mix of modalities. For instance, a user can provide a reference image for a specific garment while using a text prompt to describe the shoes or facial features.
- Image Conditions: Reference images are encoded via a VAE and concatenated with layout and target latents at the pixel level.
- Text Conditions: Prompts are processed through a CLIP encoder.
Cross-Attention Modulation
To prevent attributes from one region (e.g., the color of a shirt) from leaking into another (e.g., the pants), the model modulates cross-attention maps during inference. Binary masks derived from the layout blocks confine the attention of specific text tokens to their designated spatial regions, ensuring strict semantic isolation.
The ComposeHuman Dataset
To train the system, the authors developed the ComposeHuman dataset by retrofitting existing virtual try-on datasets (VITON-HD, DressCode, and DeepFashion). Using an automated pipeline involving the Segment Anything Model (SAM), Self-Correction for Human Parsing (SCHP), and CogVLM2, they extracted isolated components, generated geometric layouts, and produced detailed text descriptions. The resulting dataset contains over 62,000 high-quality, annotated image pairs.
Key Results
ComposeAnyone significantly outperforms existing layout-guided and subject-driven models in both image quality and spatial accuracy.
- Layout-Guided Generation: On the VITON-HD test set, ComposeAnyone achieved an FID of 18.33, vastly superior to GLIGEN (87.09) and InstanceDiffusion (113.69). It also demonstrated superior spatial accuracy (47.60%).
- Subject-Driven Generation: On the DressCode test set, the model reached an FID of 11.62 and a spatial accuracy of 61.77%, outperforming AnyDoor (FID 32.52, Accuracy 42.16%).
Qualitatively, the model excels at stitching together disparate reference garments into a cohesive, realistic human figure that adheres strictly to the user-defined layout.
Conclusion
ComposeAnyone demonstrates that simple geometric shapes combined with decoupled multimodal inputs can provide powerful, intuitive control over human image generation. While the model's performance is currently linked to the quality of automated data curation tools, it represents a major step forward in creating flexible, high-fidelity tools for fashion design and character creation. Future work will focus on improving the robustness of the data pipeline and addressing potential biases in pre-trained vision-language models.
Summary updated