{"id":13572109,"url":"https://github.com/sail-sg/sewformer","last_synced_at":"2025-10-23T16:42:27.615Z","repository":{"id":205984234,"uuid":"715564838","full_name":"sail-sg/sewformer","owner":"sail-sg","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-28T09:03:16.000Z","size":1917,"stargazers_count":180,"open_issues_count":17,"forks_count":18,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-06-09T15:52:59.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sail-sg.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-07T11:58:25.000Z","updated_at":"2025-06-05T22:02:40.000Z","dependencies_parsed_at":"2024-01-14T04:07:25.491Z","dependency_job_id":null,"html_url":"https://github.com/sail-sg/sewformer","commit_stats":null,"previous_names":["sail-sg/sewformer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sail-sg/sewformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sg%2Fsewformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sg%2Fsewformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sg%2Fsewformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sg%2Fsewformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sail-sg","download_url":"https://codeload.github.com/sail-sg/sewformer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sg%2Fsewformer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270639425,"owners_count":24620735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T14:01:13.666Z","updated_at":"2025-10-23T16:42:22.586Z","avatar_url":"https://github.com/sail-sg.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Sewformer\nThis is the official implementation of [Towards Garment Sewing Pattern Reconstruction from a Single Image](https://arxiv.org/abs/2311.04218v1).\n\n[Lijuan Liu](https://scholar.google.com/citations?user=nANxp5wAAAAJ\u0026hl=en)\u003csup\u003e *\u003c/sup\u003e,\n[Xiangyu Xu](https://xuxy09.github.io/)\u003csup\u003e *\u003c/sup\u003e,\n[Zhijie Lin](https://scholar.google.com/citations?user=xXMj6_EAAAAJ\u0026hl=zh-CN)\u003csup\u003e *\u003c/sup\u003e,\n[Jiabing Liang]()\u003csup\u003e *\u003c/sup\u003e,\n[Shuicheng Yan](https://yanshuicheng.info/)\u003csup\u003e\u0026dagger;\u003csup\u003e\u003c/sup\u003e,  \nACM Transactions on Graphics (SIGGRAPH Asia 2023)\n\n### [Project](https://sewformer.github.io/) | [Paper](https://arxiv.org/abs/2311.04218v1)\n\n\u003cimg src=\"SewFactory/assets/representative.jpg\"\u003e\n\n---------------------------\n\n### Installation and Configuration\n* Clone this repository to `path_to_dev` and `cd path_to_dev/Sewformer`, download the pre-trained [checkpoint](https://huggingface.co/liulj/sewformer) and put it into `assets/ckpts`.\n* The environment can be initialized with `conda env create -f environment.yaml`. Then you can activate the environment `conda activate garment`. \n\n### Training\n* Download our provided [dataset](https://huggingface.co/datasets/liulj/sewfactory) and put it into `path_to_sewfactory`, update the local paths in `system.json` to make sure the dataset setup correctly. \n* Train the model with\n`torchrun --standalone --nnodes=1 --nproc_per_node=1 train.py -c configs/train.yaml`\n\n  The output will be located at the `output` in `system.json`.\n\n### Testing\n\n1. Inference sewing patterns with the pretrained model: \n\n* evaluate on sewfactory dataset: `torchrun --standalone --nnodes=1 --nproc_per_node=1 train.py -c configs/train.yaml -t`\n\n* inference on real images (e.g. from deepfashion):\n    `python inference.py -c configs/test.yaml -d assets/data/deepfashion -t deepfashion -o outputs/deepfashion` \n\n2. Simulate the predicted results (Windows):\n`cd path_to_dev/SewFactory` and run `path_to_maya\\bin\\mayapy.exe .\\data_generator\\deepfashion_sim.py` to simulate the predicted sew patterns. (Please prepare the SMPL prediction results with [RSC-Net](https://github.com/xuxy09/RSC-Net) and update the predicted data root specified in `deepfashion_sim.py`.)\n\n    See more details about the SewFactory dataset and the simulation [here](./SewFactory/ReadMe.md).\n\n\n\n### BibTex\nPlease cite this paper if you find the code/model helpful in your research:\n```\n @article{liu2023sewformer,\n    author      = {Liu, Lijuan and Xu, Xiangyu and Lin, Zhijie and Liang, Jiabin and Yan, Shuicheng},\n    title       = {Towards Garment Sewing Pattern Reconstruction from a Single Image},\n    journal     = {ACM Transactions on Graphics (SIGGRAPH Asia)},\n    year        = {2023}\n  }\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsail-sg%2Fsewformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsail-sg%2Fsewformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsail-sg%2Fsewformer/lists"}