Learning to Disambiguate Strongly Interacting Hands via Probabilistic Per-Pixel Part Segmentation [3DV 2021 Oral]
Learning to Disambiguate Strongly Interacting Hands via Probabilistic Per-Pixel Part Segmentation,
Zicong Fan, Adrian Spurr, Muhammed Kocabas, Siyu Tang, Michael J. Black, Otmar Hilliges International Conference on 3D Vision (3DV), 2021
DIGIT estimates the 3D poses of two interacting hands from a single RGB image. This repo provides the training, evaluation, and demo code for the project in PyTorch Lightning.
- Sept. 29, 2024: Part segmentation in terms of vertex ids in [vertex_segments_right_seal.json]
- March 30 2022:
meta_*.pkl
can be downloaded here - November 25 2021: Initial repo with training and evaluation on PyTorch Lightning 0.9.
Instructions here
To train DIGIT, run the command below. The script runs at a batch size of 64 using accumulated gradient where each iteration is on a batch size 32:
python train.py --iter_batch 32 --batch_size 64 --gpu_ids 0 --trainsplit train --precision 16 --eval_every_epoch 2 --lr_dec_epoch 40 --max_epoch 50 --min_epoch 50
OR if you just want to do a sanity check you can run:
python train.py --iter_batch 32 --batch_size 64 --gpu_ids 0 --trainsplit minitrain --valsplit minival --precision 16 --eval_every_epoch 1 --max_epoch 50 --min_epoch 50
Each time you run train.py
, it will create a new experiment under logs
and each experiment is assigned a key.
Supposed your experiment key is 2e8c5136b
, you can evaluate the last epoch of the model on the test set by:
python test.py --eval_on minitest --load_ckpt logs/2e8c5136b/model_dump/last.ckpt
OR
python test.py --eval_on test --load_ckpt logs/2e8c5136b/model_dump/last.ckpt
The former only does the evaluation 1000 images for a sanity check.
Similarly, you can evaluate on the validation set:
python test.py --eval_on val --load_ckpt logs/2e8c5136b/model_dump/last.ckpt
Here we provide instructions to show qualitative results of DIGIT.
Download pre-trained DIGIT:
wget https://dataset.ait.ethz.ch/downloads/dE6qPPePCV/db7cba8c1.pt
mv db7cba8c1.pt saved_models
Visualize results:
CUDA_VISIBLE_DEVICES=0 python demo.py --eval_on minival --load_from saved_models/db7cba8c1.pt --num_workers 0
Evaluate pre-trained digit:
CUDA_VISIBLE_DEVICES=0 python test.py --eval_on test --load_from saved_models/db7cba8c1.pt --precision 16
CUDA_VISIBLE_DEVICES=0 python test.py --eval_on val --load_from saved_models/db7cba8c1.pt --precision 16
You should have the same results as in here.
The results will be dumped to ./visualization
.
TempCLR: Reconstructing Hands via Time-Coherent Contrastive Learning
Andrea Ziani*, Zicong Fan*, Muhammed Kocabas, Sammy Christen, Otmar Hilliges. 3DV 2022. (* Equal Contribution) [Project]
@inProceedings{fan2021digit,
title={Learning to Disambiguate Strongly Interacting Hands via Probabilistic Per-pixel Part Segmentation},
author={Fan, Zicong and Spurr, Adrian and Kocabas, Muhammed and Tang, Siyu and Black, Michael and Hilliges, Otmar},
booktitle={International Conference on 3D Vision (3DV)},
year={2021}
}
Since our code is developed based on InterHand2.6M, which is CC-BY-NC 4.0 licensed, the same LICENSE is applied to DIGIT.
DIGIT is CC-BY-NC 4.0 licensed, as found in the LICENSE file.
Some code in our repo uses snippets of the following repo:
- Our initial codebase was based on InterHand2.6M and we made significant modification to it.
- We use UNet code from UNet-PyTorch
- We use HRNet backbone from HRNet-Human-Pose-Estimation
Please consider citing them if you find our code useful:
@inproceedings{Moon_2020_ECCV_InterHand2.6M,
author = {Moon, Gyeongsik and Yu, Shoou-I and Wen, He and Shiratori, Takaaki and Lee, Kyoung Mu},
title = {InterHand2.6M: A Dataset and Baseline for 3D Interacting Hand Pose Estimation from a Single RGB Image},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2020}
}
@inproceedings{sun2019deep,
title={Deep High-Resolution Representation Learning for Human Pose Estimation},
author={Sun, Ke and Xiao, Bin and Liu, Dong and Wang, Jingdong},
booktitle={CVPR},
year={2019}
}
@inproceedings{xiao2018simple,
author={Xiao, Bin and Wu, Haiping and Wei, Yichen},
title={Simple Baselines for Human Pose Estimation and Tracking},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2018}
}
@misc{Charles2013,
author = {milesial},
title = {Pytorch-UNet},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/milesial/Pytorch-UNet}}
}
For any question, you can contact zicong.fan@inf.ethz.ch
.