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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
<h2 align="center"> <a href="https://arxiv.org/abs/2503.10624">ETCH: Generalizing Body Fitting to Clothed Humans via Equivariant Tightness</a>
|
| 6 |
+
</h2>
|
| 7 |
+
|
| 8 |
+
<h2 align="center">
|
| 9 |
+
π ICCV 2025 Highlight Paper π
|
| 10 |
+
</h2>
|
| 11 |
+
|
| 12 |
+
<h3 align="center">
|
| 13 |
+
|
| 14 |
+
[](https://arxiv.org/abs/2503.10624)
|
| 15 |
+
[](https://boqian-li.github.io/ETCH/)
|
| 16 |
+
[](https://x.com/Boqian_Li_/status/1908467186122817642)
|
| 17 |
+
[](https://youtu.be/8_3DdW0cZqM)
|
| 18 |
+
|
| 19 |
+
[Boqian Li](https://boqian-li.github.io/),
|
| 20 |
+
[Haiwen Feng](https://havenfeng.github.io/),
|
| 21 |
+
[Zeyu Cai](https://github.com/zcai0612),
|
| 22 |
+
[Michael J. Black](https://ps.is.mpg.de/person/black),
|
| 23 |
+
[Yuliang Xiu](https://xiuyuliang.cn/)
|
| 24 |
+
</h3>
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
This repository is the official implementation of ETCH, a novel body fitting pipeline that estimates cloth-to-body surface mapping through locally approximate SE(3) equivariance, encoding tightness as displacement vectors from the cloth to the underlying body.
|
| 29 |
+
|
| 30 |
+
## News π©
|
| 31 |
+
- [2025-08-04] We release the `All-in-One` model, which is trained on the `4D-Dress` dataset, `CAPE` dataset, and Generative dataset, totally 94501 samples. Please download the all-in-one model from [here](https://drive.google.com/drive/folders/14zGMkmC580VLNgeUBFtM6FP8QX415VAa?usp=sharing).
|
| 32 |
+
|
| 33 |
+
- [2025-08-04] We release the code for `ETCH`, please feel free to have a try!
|
| 34 |
+
|
| 35 |
+
## Overview
|
| 36 |
+
<div align="center">
|
| 37 |
+
<img src="assets/overview.gif" width="400" />
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
Our key novelty is modeling cloth-to-body SE(3)-equivariant tightness vectors for clothed humans, abbreviated as ETCH, which resembles ``etching'' from the outer clothing down to the inner body.
|
| 41 |
+
|
| 42 |
+
Following this outer-to-inner mapping, ETCH regresses sparse body markers, simplifying clothed human fitting into an inner-body marker fitting task.
|
| 43 |
+
|
| 44 |
+
## Environment Setup βοΈ
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
conda env create -f environment.yml
|
| 48 |
+
conda activate etch
|
| 49 |
+
cd external
|
| 50 |
+
git clone https://github.com/facebookresearch/theseus.git && cd theseus
|
| 51 |
+
pip install -e .
|
| 52 |
+
cd ../..
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Data Preparation π
|
| 56 |
+
0. please note that we placed data samples in the `datafolder` folder for convenience.
|
| 57 |
+
1. Generate Anchor Points with Tightness Vectors (for training)
|
| 58 |
+
```bash
|
| 59 |
+
python scripts/generate_infopoints.py
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
2. Get splitted ids (pkl file)
|
| 63 |
+
```bash
|
| 64 |
+
python scripts/get_splitted_ids_{datasetname}.py
|
| 65 |
+
```
|
| 66 |
+
3. For body_models, please download with [this link](https://drive.google.com/file/d/1JNFk4OGfDkgE9WdJb1D1zGaECix8XpKV/view?usp=sharing), and place it under the `datafolder/` folder.
|
| 67 |
+
|
| 68 |
+
4. please note that before the above processes, there are some preprocessing steps on the original data:
|
| 69 |
+
|
| 70 |
+
for `4D-Dress` dataset, we apply zero-translation `mesh.apply_translation(-translation)` to the original scan and the body model;
|
| 71 |
+
|
| 72 |
+
for `CAPE` dataset, we used the processed meshes extracted from [PTF](https://github.com/taconite/PTF), in which we noticed that the SMPL body meshes are marginally different from the original SMPL body meshes but more precise.
|
| 73 |
+
|
| 74 |
+
## Dataset Organization π
|
| 75 |
+
The dataset folder tree is like:
|
| 76 |
+
```bash
|
| 77 |
+
datafolder/
|
| 78 |
+
βββ datasetfolder/
|
| 79 |
+
β βββ model/ # scans
|
| 80 |
+
β β βββ id_0
|
| 81 |
+
β β β βββ id_0.obj
|
| 82 |
+
β βββ smpl(h)/ # body models
|
| 83 |
+
β β βββ id_0
|
| 84 |
+
β β β βββ info_id_0.npz
|
| 85 |
+
β β β βββ mesh_smpl_id_0.obj # SMPL body mesh
|
| 86 |
+
βββ useful_data_datasetname/
|
| 87 |
+
βββ gt_datasetname_data/
|
| 88 |
+
β βββ npz/
|
| 89 |
+
β β βββ id_0.npz
|
| 90 |
+
β βββ ply
|
| 91 |
+
β βββ id_0.ply
|
| 92 |
+
```
|
| 93 |
+
please refer to the `datafolder` folder for more details.
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
## Training π
|
| 97 |
+
|
| 98 |
+
```bash
|
| 99 |
+
CUDA_VISIBLE_DEVICES=0 python src/train.py --batch_size 2 --i datasetname_settingname
|
| 100 |
+
# batch_size should <= num_data, if you just have the sample data, you can set batch_size to 1
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Evaluation π
|
| 104 |
+
|
| 105 |
+
```bash
|
| 106 |
+
CUDA_VISIBLE_DEVICES=0 python src/eval.py --batch_size 3 --model_path path_to_pretrained_model --i datasetname_settingname
|
| 107 |
+
|
| 108 |
+
# please note that the train_ids has no overlap with the val_ids, the sample data is from train_ids, so if you want to test the pretrained model on the sample data, you should set the activated_ids_path to the train_ids.pkl file for successful selection.
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
## Pretrained Model used in the paper
|
| 112 |
+
Please download the pretrained model used in the paper from [here](https://drive.google.com/drive/folders/14zGMkmC580VLNgeUBFtM6FP8QX415VAa?usp=sharing).
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
## π₯ All-in-One Model π₯
|
| 116 |
+
We provide the `All-in-One` model, which is trained on the `4D-Dress` dataset, `CAPE` dataset, and Generative dataset, totally 94501 samples. Please download the all-in-one model from [here](https://drive.google.com/drive/folders/14zGMkmC580VLNgeUBFtM6FP8QX415VAa?usp=sharing).
|
| 117 |
+
|
| 118 |
+
For demo inference, you can use the following command:
|
| 119 |
+
```bash
|
| 120 |
+
CUDA_VISIBLE_DEVICES=0 python src/inference_demo.py --scan_path path_to_scan_obj_file --gender gender --model_path path_to_allinone_pretrained_model
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
Please note that during the training of `All-in-One` model and in the `inference_demo.py` file, we centering the scan as input, and re-center the predicted SMPL mesh to the original scan.
|
| 124 |
+
For more details, please refer to the `src/inference_demo.py` file.
|
| 125 |
+
|
| 126 |
+
We also provide the animation function, which can be used to animate the scan with the predicted SMPL mesh. please refer to the `src/animation.py` file for more details.
|
| 127 |
+
|
| 128 |
+
## Citation
|
| 129 |
+
|
| 130 |
+
```bibtex
|
| 131 |
+
@inproceedings{li2025etch,
|
| 132 |
+
title = {{ETCH: Generalizing Body Fitting to Clothed Humans via Equivariant Tightness}},
|
| 133 |
+
author = {Li, Boqian and Feng, Haiwen and Cai, Zeyu and Black, Michael J. and Xiu, Yuliang},
|
| 134 |
+
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
|
| 135 |
+
year = {2025}
|
| 136 |
+
}
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
## Acknowledgments
|
| 140 |
+
We thank [Marilyn Keller](https://marilynkeller.github.io/) for the help in Blender rendering, [Brent Yi](https://brentyi.github.io/) for fruitful discussions, [Ailing Zeng](https://ailingzeng.site/) and [Yiyu Zhuang](https://github.com/yiyuzhuang) for HuGe100K dataset, [Jingyi Wu](https://github.com/wjy0501) and [Xiaoben Li](https://xiaobenli00.github.io/) for their help during rebuttal and building this open-source project, and the members of [Endless AI Lab](http://endless.do/) for their help and discussions. This work is funded by the Research Center for Industries of the Future (RCIF) at Westlake University, the Westlake Education Foundation. [Yuliang Xiu](https://xiuyuliang.cn/) also received funding from the Max Planck Institute for Intelligent Systems.
|
| 141 |
+
|
| 142 |
+
Here are some great resources we benefit from:
|
| 143 |
+
|
| 144 |
+
- [ArtEq](https://github.com/HavenFeng/ArtEq) and [EPN_PointCloud](https://github.com/nintendops/EPN_PointCloud) for the Equivariant Point Network.
|
| 145 |
+
- [theseus](https://github.com/facebookresearch/theseus) for the implementation of LevenbergβMarquardt algorithm.
|
| 146 |
+
- [smplx](https://github.com/vchoutas/smplx) for the SMPL body model.
|
| 147 |
+
- [point-transformer](https://github.com/POSTECH-CVLab/point-transformer) for the Point Transformer network.
|
| 148 |
+
- [Robust Weight Transfer](https://github.com/rin-23/RobustSkinWeightsTransferCode) for SMPL-based animation.
|
| 149 |
+
|
| 150 |
+
## Contributors
|
| 151 |
+
Kudos to all of our amazing contributors! This open-source project is made possible by the contributions of the following individuals:
|
| 152 |
+
|
| 153 |
+
<a href="https://github.com/boqian-li/ETCH/graphs/contributors">
|
| 154 |
+
<img src="https://contrib.rocks/image?repo=boqian-li/ETCH" />
|
| 155 |
+
</a>
|
| 156 |
+
|
| 157 |
+
## License
|
| 158 |
+
ETCH is released under the [MIT License](LICENSE).
|
| 159 |
+
|
| 160 |
+
## Disclosure
|
| 161 |
+
While MJB is a co-founder and Chief Scientist at Meshcapade, his research in this project was performed solely at, and funded solely by, the Max Planck Society.
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
## Contact
|
| 165 |
+
For technical questions, please contact Boqian Li via [email protected].
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
|