Add AnyHand model card, paper citation, and checkpoint usage requirements
Browse files
README.md
CHANGED
|
@@ -1,3 +1,142 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-nd-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-nd-4.0
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
datasets:
|
| 5 |
+
- chen-si-02/AnyHand-Dataset
|
| 6 |
+
tags:
|
| 7 |
+
- image
|
| 8 |
+
- computer-vision
|
| 9 |
+
- hand-pose-estimation
|
| 10 |
+
- 3d-hand-reconstruction
|
| 11 |
+
- mano
|
| 12 |
+
- hamer
|
| 13 |
+
- wilor
|
| 14 |
+
- neurips-2026
|
| 15 |
+
- arxiv:2603.25726
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
# AnyHand Models
|
| 19 |
+
|
| 20 |
+
**HaMeR and WiLoR checkpoints co-trained with AnyHand for RGB-based 3D hand pose and mesh reconstruction.** The baseline architectures are unchanged; these weights are used with the corresponding model implementations in the official AnyHand repository.
|
| 21 |
+
|
| 22 |
+
[Paper: AnyHand](https://arxiv.org/abs/2603.25726) 路 [Project website](https://chen-si-cs.github.io/projects/AnyHand/) 路 [Inference code](https://github.com/chen-si-cs/AnyHand) 路 [Dataset](https://huggingface.co/datasets/chen-si-02/AnyHand-Dataset) 路 [Interactive demo](https://chen-si-02-anyhand-demo.hf.space/) 路 [Colab](https://colab.research.google.com/drive/1O71DiPWzNlIflCVTViJeXp2VnfffHnTt)
|
| 23 |
+
|
| 24 |
+
The project is accepted to **NeurIPS 2026**, as announced on the project website.
|
| 25 |
+
|
| 26 |
+
## Released files
|
| 27 |
+
|
| 28 |
+
| File | Purpose |
|
| 29 |
+
|:--|:--|
|
| 30 |
+
| `anyhand_wilor.ckpt` | WiLoR checkpoint co-trained with AnyHand |
|
| 31 |
+
| `model_config_wilor.yaml` | Configuration used by the released WiLoR loader |
|
| 32 |
+
| `anyhand_hamer.ckpt` | HaMeR checkpoint co-trained with AnyHand |
|
| 33 |
+
|
| 34 |
+
These are PyTorch checkpoints loaded by the project code. Use the original architecture-specific loader and preprocessing.
|
| 35 |
+
|
| 36 |
+
**HaMeR configuration requirement:** this HF repository currently does **not** contain `model_config_hamer.yaml`. The official `prepare_hamer.sh` tries to download that filename, and the predictor expects a matching `model_config.yaml` beside `anyhand_hamer.ckpt`. HaMeR setup therefore needs the verified configuration for the released checkpoint. Do not substitute the WiLoR configuration. The WiLoR checkpoint and its configuration are both available here.
|
| 37 |
+
|
| 38 |
+
The detector, licensed MANO model, and other runtime dependencies are obtained separately through the official setup instructions. This repository does not include an AnyHandNet-D / RGB-D checkpoint.
|
| 39 |
+
|
| 40 |
+
## Model description
|
| 41 |
+
|
| 42 |
+
- **Input:** an RGB image. The unified predictor detects hands, prepares crops, and runs the selected reconstruction backend.
|
| 43 |
+
- **Outputs:** MANO pose and shape parameters, a 778-vertex hand mesh, 21 hand joints, projected 2D keypoints, handedness, and camera estimates through `AnyHandPredictor`.
|
| 44 |
+
- **Backends:** [HaMeR](https://github.com/geopavlakos/hamer) and [WiLoR](https://github.com/rolpotamias/WiLoR).
|
| 45 |
+
- **Training:** the official project describes these checkpoints as co-trained using AnyHand and real-world hand datasets. The paper studies synthetic/real data mixing while keeping the baseline architectures and training protocols fixed.
|
| 46 |
+
|
| 47 |
+
The configuration YAML is a loader/training configuration, not a complete record of every dataset, sampling choice, or training run. Refer to the paper for experimental protocols. The published dataset inventory currently contains **6,304,768 samples**; its dataset card distinguishes this inventory from the paper's approximately 6.6M-image scale.
|
| 48 |
+
|
| 49 |
+
## Get started with WiLoR
|
| 50 |
+
|
| 51 |
+
Clone the official code with its submodules:
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
git clone --recurse-submodules https://github.com/chen-si-cs/AnyHand.git
|
| 55 |
+
cd AnyHand
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Follow the [installation instructions](https://github.com/chen-si-cs/AnyHand#12-install-dependencies) to create the environment and install a compatible PyTorch/CUDA build. From the repository root:
|
| 59 |
+
|
| 60 |
+
```bash
|
| 61 |
+
bash scripts/prepare_wilor.sh
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
The preparation script obtains the WiLoR checkpoint, configuration, and hand detector. Obtain the MANO model from [the MANO website](https://mano.is.tue.mpg.de/) under its license and follow the project's [MANO setup](https://github.com/chen-si-cs/AnyHand#13-set-up-mano), including the mean-parameter file.
|
| 65 |
+
|
| 66 |
+
Then run:
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from scripts.rgb_predictor import AnyHandPredictor
|
| 70 |
+
|
| 71 |
+
predictor = AnyHandPredictor(backend="wilor")
|
| 72 |
+
hands = predictor.predict("path/to/image.jpg")
|
| 73 |
+
for hand in hands:
|
| 74 |
+
print(hand.is_right, hand.score)
|
| 75 |
+
print(hand.vertices.shape) # (778, 3)
|
| 76 |
+
print(hand.keypoints_3d.shape) # (21, 3)
|
| 77 |
+
print(hand.keypoints_2d.shape) # (21, 2)
|
| 78 |
+
print(hand.mano_pose.shape) # (48,)
|
| 79 |
+
print(hand.mano_shape.shape) # (10,)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
For projection and rendering, use the helpers supplied by `AnyHandPredictor` and its documented camera conventions. Its prediction representation and the dataset's stored annotation representation are separate interfaces.
|
| 83 |
+
|
| 84 |
+
Alternatively, download just the WiLoR files with the HF client, then complete the same detector/MANO/runtime setup:
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
python -m pip install -U huggingface_hub
|
| 88 |
+
hf download chen-si-02/AnyHand-Models anyhand_wilor.ckpt model_config_wilor.yaml --local-dir pretrained_models
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
For reproducible experiments, specify a commit with `--revision COMMIT_SHA`, and retain the matching code revision and configuration.
|
| 92 |
+
|
| 93 |
+
## Evaluation
|
| 94 |
+
|
| 95 |
+
The [AnyHand paper](https://arxiv.org/abs/2603.25726) reports improved performance from augmenting existing RGB baselines with AnyHand on benchmarks including FreiHAND and HO-3D, together with generalization and data-mixture experiments. Consult the paper for metrics, splits, alignment conventions, and training settings.
|
| 96 |
+
|
| 97 |
+
This card does not assign paper-table scores to individual checkpoint files without a checkpoint-specific evaluation record. No inference or benchmark evaluation was performed as part of the release-documentation audit.
|
| 98 |
+
|
| 99 |
+
## Intended use and limitations
|
| 100 |
+
|
| 101 |
+
These checkpoints support research into 3D hand reconstruction, hand-object interactions, and synthetic-to-real generalization. Predictions can be affected by detector failures, strong occlusion, image quality, viewpoints, and appearances outside the training distribution. A reconstruction or confidence score is not a verified measurement of hand geometry. RGB input does not provide measured metric depth.
|
| 102 |
+
|
| 103 |
+
Training data and synthetic assets may not cover all real-world hands and settings. Applications should evaluate performance on their own data and follow the conditions of the checkpoints, baseline code, detector, and MANO assets.
|
| 104 |
+
|
| 105 |
+
## License
|
| 106 |
+
|
| 107 |
+
The released checkpoints use [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/), consistent with the existing repository metadata and [official project license](https://github.com/chen-si-cs/AnyHand#license). Baseline implementations, the detector, and MANO assets have their own licenses. See the official repository for component-specific terms.
|
| 108 |
+
|
| 109 |
+
## Citation
|
| 110 |
+
|
| 111 |
+
If you use these checkpoints, cite AnyHand and the corresponding baseline:
|
| 112 |
+
|
| 113 |
+
```bibtex
|
| 114 |
+
@inproceedings{si2026anyhand,
|
| 115 |
+
title = {{AnyHand}: A Large-Scale Synthetic Dataset for {RGB(-D)} Hand Pose Estimation},
|
| 116 |
+
author = {Si, Chen and Liu, Yulin and Ai, Bo and Xie, Jianwen and
|
| 117 |
+
Potamias, Rolandos Alexandros and Zheng, Chuanxia and Su, Hao},
|
| 118 |
+
booktitle = {Advances in Neural Information Processing Systems},
|
| 119 |
+
year = {2026},
|
| 120 |
+
url = {https://arxiv.org/abs/2603.25726}
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
@inproceedings{pavlakos2024reconstructing,
|
| 124 |
+
title = {Reconstructing Hands in 3D with Transformers},
|
| 125 |
+
author = {Pavlakos, Georgios and Shan, Dandan and Radosavovic, Ilija and
|
| 126 |
+
Kanazawa, Angjoo and Fouhey, David and Malik, Jitendra},
|
| 127 |
+
booktitle = {CVPR},
|
| 128 |
+
year = {2024}
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
@misc{potamias2024wilor,
|
| 132 |
+
title = {WiLoR: End-to-end 3D Hand Localization and Reconstruction in-the-wild},
|
| 133 |
+
author = {Potamias, Rolandos Alexandros and Zhang, Jinglei and
|
| 134 |
+
Deng, Jiankang and Zafeiriou, Stefanos},
|
| 135 |
+
year = {2024},
|
| 136 |
+
eprint = {2409.12259},
|
| 137 |
+
archivePrefix = {arXiv},
|
| 138 |
+
primaryClass = {cs.CV}
|
| 139 |
+
}
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
For questions about usage or missing release files, use [GitHub issues](https://github.com/chen-si-cs/AnyHand/issues) or [model discussions](https://huggingface.co/chen-si-02/AnyHand-Models/discussions).
|