All Projects → chaitanya100100 → Tailornet

chaitanya100100 / Tailornet

Licence: other
Code for our CVPR 2020 (ORAL) paper - TailorNet: Predicting Clothing in 3D as a Function of Human Pose, Shape and Garment Style.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tailornet

Meshlab
The open source mesh processing system
Stars: ✭ 2,619 (+1355%)
Mutual labels:  3d-reconstruction, 3d-models
Tf flame
Tensorflow framework for the FLAME 3D head model. The code demonstrates how to sample 3D heads from the model, fit the model to 2D or 3D keypoints, and how to generate textured head meshes from Images.
Stars: ✭ 193 (+7.22%)
Mutual labels:  3d-reconstruction, 3d-models
Curated List Of Awesome 3d Morphable Model Software And Data
The idea of this list is to collect shared data and algorithms around 3D Morphable Models. You are invited to contribute to this list by adding a pull request. The original list arised from the Dagstuhl seminar on 3D Morphable Models https://www.dagstuhl.de/19102 in March 2019.
Stars: ✭ 375 (+108.33%)
Mutual labels:  3d-reconstruction, 3d-models
Flame pytorch
This is a implementation of the 3D FLAME model in PyTorch
Stars: ✭ 153 (-15%)
Mutual labels:  3d-reconstruction, 3d-models
Awsome deep geometry learning
A list of resources about deep learning solutions on 3D shape processing
Stars: ✭ 105 (-41.67%)
Mutual labels:  3d-reconstruction, 3d-models
Versatile
A simple 3D model editor based on simple quads and a sprite set.
Stars: ✭ 132 (-26.67%)
Mutual labels:  3d-models
Pytorchconv3d
I3D and 3D-ResNets in PyTorch
Stars: ✭ 131 (-27.22%)
Mutual labels:  3d-models
Nips16 ptn
Torch Implementation of NIPS'16 paper: Perspective Transformer Nets
Stars: ✭ 126 (-30%)
Mutual labels:  3d-models
Obman train
[cvpr19] Demo, training and evaluation code for generating dense hand+object reconstructions from single rgb images
Stars: ✭ 124 (-31.11%)
Mutual labels:  3d-reconstruction
Factored3d
Code release for "Factoring Shape, Pose, and Layout from the 2D Image of a 3D Scene"
Stars: ✭ 170 (-5.56%)
Mutual labels:  3d-reconstruction
Prnet pytorch
Training & Inference Code of PRNet in PyTorch 1.1.0
Stars: ✭ 149 (-17.22%)
Mutual labels:  3d-reconstruction
Synthesize3dviadepthorsil
[CVPR 2017] Generation and reconstruction of 3D shapes via modeling multi-view depth maps or silhouettes
Stars: ✭ 141 (-21.67%)
Mutual labels:  3d-reconstruction
Flame
FLaME: Fast Lightweight Mesh Estimation
Stars: ✭ 164 (-8.89%)
Mutual labels:  3d-reconstruction
Opensfm
Open source Structure-from-Motion pipeline
Stars: ✭ 2,342 (+1201.11%)
Mutual labels:  3d-reconstruction
Surfelwarp
SurfelWarp: Efficient Non-Volumetric Dynamic Reconstruction
Stars: ✭ 149 (-17.22%)
Mutual labels:  3d-reconstruction
Arkit Unity3d
Access ARKit features like world-tracking, live video rendering, plane estimation and updates, hit-testing API, ambient light estimation, and raw point cloud data.
Stars: ✭ 124 (-31.11%)
Mutual labels:  3d-models
Deodr
A differentiable 3D renderer with Pytorch, Tensorflow and Matlab interfaces
Stars: ✭ 167 (-7.22%)
Mutual labels:  3d-reconstruction
Drc
Code release for "Multi-view Supervision for Single-view Reconstruction via Differentiable Ray Consistency" (CVPR 2017)
Stars: ✭ 147 (-18.33%)
Mutual labels:  3d-reconstruction
Ad Census
AD-Census立体匹配算法,中国学者Xing Mei等人研究成果(Respect!),算法效率高、效果出色,适合硬件加速,Intel RealSense D400 Stereo模块算法。完整实现,代码规范,注释清晰,欢迎star!
Stars: ✭ 145 (-19.44%)
Mutual labels:  3d-reconstruction
Sltk
An OpenCV-based structured light processing toolkit.
Stars: ✭ 151 (-16.11%)
Mutual labels:  3d-reconstruction

TailorNet

This repository contains training and inference code for the following paper:

TailorNet: Predicting Clothing in 3D as a Function of Human Pose, Shape and Garment Style  
Chaitanya Patel*, Zhouyingcheng Liao*, Gerard Pons-Moll  
CVPR 2020 (ORAL)  

[ArXiv] [Project Website] [Dataset Repo] [Oral Presentation] [Results Video]

Teaser

Citation

Cite us if you use our model, code or data:

@inproceedings{patel20tailornet,
        title = {TailorNet: Predicting Clothing in 3D as a Function of Human Pose, Shape and Garment Style},
        author = {Patel, Chaitanya and Liao, Zhouyingcheng and Pons-Moll, Gerard},
        booktitle = {{IEEE} Conference on Computer Vision and Pattern Recognition (CVPR)},
        month = {jun},
        organization = {{IEEE}},
        year = {2020},
    }

Updates

  • [26-12-2020] Female skirt weights added.
  • [11-11-2020] Female and male short-pant weights added.
  • [02-08-2020] Female and male pant weights added.
  • [19-07-2020] Male shirt weights added.
  • [12-07-2020] Female shirt weights added.
  • [28-06-2020] Female t-shirt weights added.
  • [25-06-2020] Minor bug fixes and male t-shirt weights added.
  • [17-06-2020] Inference script and female old-t-shirt weights added.

Requirements

python3
pytorch
scipy
chumpy
psbody.mesh

How to Run

  • Download and prepare SMPL model and TailorNet data from dataset repository.
  • Set DATA_DIR and SMPL paths in global_var.py file accordingly.
  • Download trained model weights in a directory and set its path to MODEL_WEIGHTS_PATH variable in global_var.py.
  • Set output path in run_tailornet.py and run it to predict garments on some random inputs. You can play with different inputs. You can also run inference on motion sequence data.
  • To visualize predicted garment using blender, run python run_tailornet.py render. (Blender 2.79 needs to be installed.)

TailorNet Per-vertex Error in mm on Test Set

... evaluated using evaluate function in utils/eval.py. | garment_class | gender | TailorNet Baseline | TailorNet Mixture Model | |:--:|:--:|:--:|:--:| | old-t-shirt | female | 11.1 | 10.7 | | t-shirt | female | 12.6 | 12.3 | | t-shirt | male | 11.4 | 11.2 | | shirt | female | 14.2 | 14.1 | | shirt | male | 12.7 | 12.5 | | pant | female | 4.7 | 4.8 | | pant | male | 8.1 | 8.1 | | short-pant | female | 6.8 | 6.6 | | short-pant | male | 7.0 | 7.0 | | skirt | female | 7.7 | 7.8 |

Training TailorNet yourself

  • Set global variables in global_var.py, especially LOG_DIR where training logs will be stored.
  • Set config variables like gender and garment class in trainer/base_trainer.py (or pass them via command line) and run python trainer/base_trainer.py to train TailorNet MLP baseline.
  • Similarly, run python trainer/lf_trainer.py to train low frequency predictor and trainer/ss2g_trainer.py to train shape-style-to-garment(in canonical pose) model.
  • Run python trainer/hf_trainer.py --shape_style <shape1>_<style1> <shape2>_<style2> ... to train pivot high frequency predictors for pivots <shape1>_<style1>, <shape2>_<style2>, and so on. See DATA_DIR/<garment_class>_<gender>/pivots.txt to know available pivots.
  • Use models.tailornet_model.TailorNetModel with appropriate logdir arguments to do prediction.

Inference Time

In the paper, we report inference time to be 1-2 ms per frame(depending upon garment) which is averaged inference time over the batch of 21 samples(20-40 ms per batch). Apologies for the ambiguity. Running each sample separately takes almost same time as batch - around 20 ms per frame for all garments. However, note that TailorNet has 21 independent MLPs, so we believe that faster inference time is possible if MLPs are configured to run in parallel on GPU cores.

Misc

  • See ./models/skirt_model.md for the explanation of skirt garment model.
  • Thanks to Bharat for many fruitful discussions and for smpl_lib library taken from his MultiGarmentNet repo's lib folder.
  • Thanks to Garvita for helping out during the onerous procedure of data generation.

For any doubt or concert about the code, raise an issue on this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].