GenHOI / README.md
biubiu0613's picture
Update source link after making GitHub repository public
96b00d7 verified
|
Raw History Blame Contribute Delete
5.34 kB
---
pretty_name: GenHOI DexYCB and HO3Dv2 Checkpoints
library_name: pytorch
language:
- en
tags:
- genhoi
- dexycb
- ho3d
- hand-object-pose-estimation
---
# GenHOI checkpoints
Inference checkpoints for **GenHOI: Generalized Hand-Object Pose Estimation with Occlusion Awareness**. These weights use the maintained DexYCB and HO3Dv2 entry points in the [source repository](https://github.com/huiyang0613/GenHOI). Text sidecars and processed JSON annotations are available separately at [GenHOI-data](https://huggingface.co/datasets/biubiu0613/GenHOI-data).
| Download | Encoder | Protocol | Unseen target(s) | Stored epoch | State entries |
| --- | --- | --- | --- | ---: | ---: |
| [dexycb_s3.pth](https://huggingface.co/biubiu0613/GenHOI/resolve/main/dexycb_s3.pth?download=true) | ResNet-50 | Right-hand S3 train+val subset, 17 training targets / 3 test targets | Gelatin box, bleach cleanser, wood block | 60 | 1,073 |
| [ho3d_dinov2.pth](https://huggingface.co/biubiu0613/GenHOI/resolve/main/ho3d_dinov2.pth?download=true) | Frozen DINOv2 ViT-B/14 | Official HO3Dv2 train/evaluation frame lists | Pitcher | 64 | 960 |
Both files contain the full GenHOI network, including BERT and, for HO3D, DINOv2 parameters. They contain no optimizer state and cannot resume optimization with `--resume`. No third-party source or MANO model parameters are included here. The checkpoint's learned MANO output heads are distinct from the separately obtained MANO hand-model files.
## Verified source revision
The checkpoints were validated against source commit [`13072b9`](https://github.com/huiyang0613/GenHOI/tree/13072b9223b2026c1200c553d8af85afece89afb). All 30 CPU tests passed from a fresh GitHub clone. Both checkpoint files were downloaded without authentication, matched their SHA256 checksums, and loaded strictly at this source revision: 1,073 state entries for DexYCB and 960 for HO3D. Local benchmark/model assets are still required as described below.
## Download
From the GenHOI source checkout:
```bash
python -m pip install huggingface_hub==0.36.2
hf download biubiu0613/GenHOI \
dexycb_s3.pth ho3d_dinov2.pth manifest.json SHA256SUMS \
--repo-type model --local-dir ckpts
cd ckpts
sha256sum -c SHA256SUMS
cd ..
```
The repository is public; downloads do not require a Hugging Face login. See [manifest.json](https://huggingface.co/biubiu0613/GenHOI/resolve/main/manifest.json) for sizes and hashes, and [SHA256SUMS](https://huggingface.co/biubiu0613/GenHOI/resolve/main/SHA256SUMS) for checksum verification.
## Load and evaluate
Use the project's Python 3.9 / PyTorch 2.1.0 environment and its local asset configuration. These are custom PyTorch models; `transformers.AutoModel.from_pretrained` is not the loading entry point.
```bash
python main/test.py --checkpoint ckpts/dexycb_s3.pth --check-only
python main/test_ho3d.py --checkpoint ckpts/ho3d_dinov2.pth --check-only
CUDA_VISIBLE_DEVICES=0 python main/test.py \
--checkpoint ckpts/dexycb_s3.pth --require-grasp-labels \
--output-dir outputs/evaluation/dexycb
CUDA_VISIBLE_DEVICES=0 python main/test_ho3d.py \
--checkpoint ckpts/ho3d_dinov2.pth --require-grasp-labels \
--output-dir outputs/evaluation/ho3d
```
Strict-load checks still require local MANO parameters and BERT configuration/tokenizer files; the HO3D check also requires the local DINOv2 source checkout. They do not open the image datasets. Inference restores BERT/DINOv2 weights from these complete checkpoints; fresh training needs separate pretrained initialization files.
Full evaluation additionally requires the benchmark data, canonical/simplified YCB geometry and the exact preprocessing/index inputs documented by the source README. The text/JSON data ZIPs alone do not supply every loader input. Interaction-only scores require matching grasp-label dictionaries.
## Evaluation disclosures
- **DexYCB:** IDs 8/12/16 are held-out grasped targets. Official S3 validation IDs 4/21 were included in this checkpoint's training, so its 17/3 protocol is not strict official 15/2/3 S3. The annotation/SDF subset has 130,827 eligible training and 23,895 evaluation frames; GT-grasp filtering selects 19,361 evaluation frames.
- **HO3Dv2:** training has no pitcher frames. Of 66,034 official training records, SDF availability excludes 28. Evaluation has 7,694 seen-object frames and 3,830 pitcher frames. The checkpoint was selected by seen-object evaluation ADD-S, not by unseen-pitcher performance.
- **Metrics:** symmetry-selected ADD/ADD-S threshold success and normalized AUC are distinct. Use the named metrics, subset counts and aggregation rules in the source README rather than assuming numerical equivalence to a paper table.
- **Scope:** the benchmark pipelines use annotated crop/camera/hand-root information and are not arbitrary-image detectors. These are the retained current checkpoints, with their disclosed protocols; exact paper-table reproduction is not claimed.
## Attribution and terms
See the [GenHOI paper](https://arxiv.org/abs/2603.19013) and the source README for upstream attribution. The repository has not yet selected an overall GenHOI license. Existing BERT, DINOv2, dataset, geometry and upstream implementation terms remain applicable; this model card does not replace them. MANO parameters must be obtained separately from their provider.