S

SewFormer

open_source

SewFormer reconstructs garment sewing patterns from a single photo using a two-level Transformer network. Includes the SewFactory dataset with ~1M images. Open-source research from SIGGRAPH Asia 2023.

About

SewFormer is an academic AI system designed to solve the challenging problem of recovering garment sewing patterns from everyday photographs. Given a single RGB image of a clothed human, SewFormer accurately reconstructs the underlying sewing pattern — the intrinsic rest shape of a garment — which forms the foundation for applications in fashion design, virtual try-on, and digital avatar creation. The framework consists of three key components: a visual encoder that extracts sequential visual representations from the input image, a two-level hierarchical Transformer decoder that predicts the sewing pattern structure, and a stitch prediction module that determines how individual panels connect to form a complete garment. This architecture enables high-fidelity pattern recovery and generalizes well to real-world casual photographs. To support training and evaluation, the researchers introduce SewFactory, a large-scale synthetic dataset containing approximately 1 million images paired with ground-truth sewing patterns. SewFactory features diverse human poses, body shapes, garment types, and realistic textures generated via a human texture synthesis network — significantly narrowing the domain gap between synthetic and real-world data. SewFormer is aimed at researchers and developers working in computer vision, fashion tech, and 3D graphics. The code and dataset are publicly available, making it a valuable open-source resource for advancing garment digitization, AR/VR fashion applications, and AI-driven fashion design pipelines.

Key Features

  • Single-Image Sewing Pattern Recovery: Reconstructs the full garment sewing pattern from just one RGB photo of a clothed person, requiring no 3D scans or specialized equipment.
  • Two-Level Transformer Architecture: A hierarchical Transformer decoder predicts sewing pattern panels at multiple levels, improving accuracy and structural consistency of the recovered patterns.
  • Stitch Prediction Module: Automatically determines how individual garment panels are stitched together, enabling complete and functional sewing pattern reconstruction.
  • SewFactory Dataset: A large-scale synthetic dataset of ~1M images with diverse human poses, body shapes, garment types, and ground-truth sewing patterns for model training and evaluation.
  • 3D Garment Editing & Reconstruction: Recovered sewing patterns can be used for downstream tasks including 3D garment mesh generation, texture editing, human shape modification, and pose transfer.

Use Cases

  • Fashion designers digitizing existing garments by photographing them and recovering their sewing patterns for modification or reproduction.
  • Virtual try-on and e-commerce platforms reconstructing 3D garment models from product photos for realistic online fitting experiences.
  • Game and VR/AR developers creating accurate digital clothing assets for avatars without manual 3D modeling.
  • Researchers building on SewFactory as a benchmark dataset for garment reconstruction, pose estimation, or body shape analysis tasks.
  • Fashion tech startups automating the digitization of physical garment libraries into editable, simulation-ready 3D assets.

Pros

  • Open-Source Research Asset: Both the code and SewFactory dataset are publicly available, making it highly accessible for researchers and developers to build upon.
  • Generalizes to Real-World Photos: Despite being trained on synthetic data, SewFormer demonstrates strong generalization to casually taken real-world human photos.
  • Comprehensive Ground-Truth Labels: SewFactory provides rich annotations including 3D pose, densepose, garment mesh, segmentation maps, depth, and normals — useful for many tasks beyond pattern recovery.
  • Peer-Reviewed Academic Quality: Published in ACM Transactions on Graphics at SIGGRAPH Asia 2023, ensuring rigorous evaluation and scientific credibility.

Cons

  • Research Prototype, Not Production-Ready: As an academic project, SewFormer lacks a polished user interface or commercial-grade API, requiring technical expertise to deploy and use.
  • Limited to Supported Garment Types: Performance may degrade on garment styles not well represented in the SewFactory training distribution, such as highly unusual or culturally specific clothing.
  • Synthetic-to-Real Domain Gap: While addressed through texture synthesis, some gap remains between synthetic training data and complex real-world clothing appearances and occlusions.

Frequently Asked Questions

What is a garment sewing pattern?

A sewing pattern is the set of 2D fabric panels that, when stitched together and worn, form a 3D garment. It represents the intrinsic rest shape of clothing and is fundamental to fashion design and digital garment creation.

What input does SewFormer require?

SewFormer takes a single RGB image of a clothed human as input. No depth sensors, 3D scans, or multiple views are needed.

What is SewFactory?

SewFactory is a large-scale synthetic dataset introduced alongside SewFormer. It contains approximately 1 million images with diverse poses, body shapes, garment types, and realistic textures, all paired with ground-truth sewing patterns and rich annotation labels.

Is SewFormer open source?

Yes. The research code and the SewFactory dataset are publicly available, as detailed on the project page and the associated arXiv paper.

What applications can SewFormer enable?

SewFormer supports applications in fashion design, virtual try-on, digital avatar creation, 3D garment mesh reconstruction, garment texture editing, and AR/VR clothing simulation.

Reviews

No reviews yet. Be the first to review this tool.

Alternatives

See all