CMU's OmniFabric Turns a Clothing Photo Into a Simulation-Ready 3D Garment
OmniFabric turns a single clothing photo into a simulation-ready 3D garment with clean, relightable textures laid out on sewing panels.
Takeaways
- OmniFabric reconstructs simulation-ready 3D garments from a single photo by synthesizing textures in sewing-pattern UV space.
- A two-stage pipeline uses Nano Banana Pro for pose alignment and Veo 3 for multi-view, then a LoRA-tuned DiT cleans the UV map.
- A 3D position map conditions the refiner so patterns stay continuous across disconnected sewing panels.
- Scores LPIPS 0.092 and SSIM 0.868 on synthetic data, beating Hunyuan3D 2.0, Paint3D and FabricDiffusion across all metrics.
- Trained on 30K synthetic textured patterns built with GarmentCodeData, TPS distortion augmentation and NVIDIA Warp simulations.
- Code, an open-source FLUX.2 variant, and the dataset pipeline are being released.
OmniFabric, a garment-texturing system from Carnegie Mellon University, the University of Washington, Texas A&M University and Google, turns a clothing photo and a predicted sewing pattern into a texture that can be draped and relit in a physics engine. The project page describes a pipeline that paints in the garment’s flat sewing-panel space, preserving logos, prints and asymmetric designs while removing photographed shadows and wrinkles.
Existing geometry pipelines can recover a plausible garment shape, but projected source photos often transfer cast shadows, highlights, folds and projection smears onto the mesh. Those artifacts become part of the surface color, producing implausible results when the garment moves or the lighting changes. OmniFabric addresses that bottleneck by generating a UV map, the flat 2D image that assigns color to points on a 3D surface.
Why cloth defeats mesh painters
General 3D texturing systems such as Hunyuan3D 2.0, Paint3D and TEXTure typically generate several painted views and project them onto a mesh. Source-image illumination then becomes embedded in the UV map, while folds and self-occlusion create blurred or stretched regions during projection and unwrapping.
FabricDiffusion, presented at SIGGRAPH Asia 2024, reduces baked lighting by extracting small, tileable material patches from a reference image. That local approach handles repeating textiles but struggles with garment-wide composition, including off-center logos, large prints and designs that differ across the front and back. OmniFabric combines clean surface color with a coherent global layout.
Two passes on a flat canvas
At inference time, OmniFabric requires a reference image plus a rest-pose mesh and sewing pattern from an upstream reconstruction model. The main experiments use ChatGarment for pattern prediction. The pipeline then builds a coarse texture and passes it through a learned refinement model.
- Align the reference. Nano Banana Pro reposes the photographed garment into an A-pose aligned with the front silhouette of the rest-pose mesh.
- Generate unseen views. The aligned image is projected onto the mesh, and Google’s Veo 3 generates a 360-degree garment rotation.
- Build the coarse map. Front, back, left and right frames are projected onto the mesh and unwrapped into the 2D sewing panels.
- Normalize the texture. A fine-tuned diffusion model removes lighting and deformation artifacts while preserving the garment’s design.
The refinement stage uses a Diffusion Transformer, or DiT, adapted with Low-Rank Adaptation (LoRA). LoRA adds a small set of trainable weights to a frozen model, reducing the compute and memory needed for fine-tuning. OmniFabric conditions the DiT on the coarse UV map, a textured frontal rendering and a position map.
The position map records each mesh vertex’s 3D coordinates at its corresponding location on the 2D panel layout. Those coordinates tell the network which distant panel edges meet after sewing, helping stripes and prints continue across seams.
The architecture follows the OminiControl token-sequence design. Patches at matching pixel coordinates in the coarse texture, position map and target texture receive shared positional encodings; the frontal rendering uses separate encodings. The variational autoencoder and main DiT backbone remain frozen, with only the LoRA adapter trained. The reported setup uses one NVIDIA A6000 GPU, a batch size of eight and 1024-by-1024 images.
Synthetic wrinkles supply supervision
Training requires pairs of clean textures and versions contaminated by folds, shadows and geometric distortion. Because such pairs are scarce, the researchers built a synthetic data pipeline from 3,000 GarmentCodeData garments. Language-model descriptions derived from DeepFashion photos guide the generation of texture images, which are then placed on the sewing panels.
Each sample receives a Thin Plate Spline warp, a smooth geometric deformation, with perturbation magnitude λ = 25 before draping. NVIDIA Warp simulates the garment under randomized point lights, producing varied wrinkles and shading from the same pattern. The resulting dataset contains 30,000 textured sewing patterns, averaging 10 texture variants per garment style, with each simulated input paired with its clean source texture.
Measured gains on synthetic and real inputs
OmniFabric leads the reported baselines on the held-out synthetic split. Its LPIPS score falls to 0.092 from 0.223 for Hunyuan3D 2.0, the strongest comparison on that metric. SSIM rises from 0.712 to 0.868, while CLIP similarity increases from 0.924 to 0.963.
| Method | LPIPS ↓ | SSIM ↑ | DISTS ↓ | CLIP-s ↑ |
|---|---|---|---|---|
| FabricDiffusion | 0.273 | 0.645 | 0.259 | 0.906 |
| Paint3D | 0.311 | 0.657 | 0.266 | 0.890 |
| Hunyuan3D 2.0 | 0.223 | 0.712 | 0.220 | 0.924 |
| OmniFabric | 0.092 | 0.868 | 0.121 | 0.963 |
LPIPS and DISTS estimate perceptual differences between images, SSIM measures structural similarity on a zero-to-one scale, and CLIP-s measures semantic agreement with the reference image. Synthetic evaluation provides clean target textures, making direct comparisons possible.
Real photographs lack ground-truth UV maps, so the authors also conducted a study with 13 participants and 10 image inputs. Participants scored overall ranking, fidelity to the input, back-view plausibility and global texture coherence. OmniFabric achieved a mean overall rank of 1.09, where lower is better, compared with 2.10 for Hunyuan3D 2.0. Its mean fidelity score reached 4.44 out of five, compared with 3.43.
Ablation experiments show that the coarse multi-view texture provides the strongest design constraint. Removing it raises LPIPS from 0.092 to 0.407. Removing either the frontal rendering or position map causes smaller, consistent declines. Without the position map, texture elements can also appear on the wrong panel; one example places a lemon print in an intended blank region.
A path off proprietary backends
The default pipeline depends on Nano Banana Pro and Veo 3, so the authors also tested an open-source configuration using FLUX.2 for image generation and Ministral 3 for prompt expansion. Frontal rendering and four orthogonal silhouettes condition FLUX.2 to generate the required views. This version records LPIPS of 0.114 and SSIM of 0.847, compared with 0.092 and 0.868 for the default configuration.
Default inference takes roughly five minutes per garment, with most of the runtime spent on Gemini backend calls. The authors report that fewer than 2% of those calls generate a texture unrelated to the input, and their experiments required no additional filtering.
Errors enter from both ends
Generated side and back views remain a major source of error. If Veo 3 invents inconsistent details, the refinement model preserves the incorrect design while cleaning its texture. The generated views therefore represent plausible completions of unseen areas, rather than verified reconstructions.
Upstream geometry also constrains the result. A sewing pattern from ChatGarment that does not match the photographed garment produces an incorrect silhouette, even when OmniFabric textures it consistently. Mesh repair sits outside the normalization model’s scope.
The output textures approximate albedo, the base surface color used by a renderer. Production physically based rendering still requires manually supplied roughness, metallic and normal maps. Reflective and metallic fabrics remain difficult, and the paper identifies joint prediction of those material properties as future work.
From phone photo to editable cloth
OmniFabric gives virtual try-on, digital wardrobe, game and visual-effects pipelines a way to retain garment-wide graphics while producing textures that can move under simulation and respond to new lighting. It also works with sewing-pattern predictions from both ChatGarment and AiPparel, although the final quality still depends on the accuracy of those upstream models.
The GitHub repository contains the implementation. The authors also plan to release the synthetic dataset and its curation pipeline, providing paired clean and simulated garment textures for further research.