A small wrapper around HaMeR for 3D hand estimation from RGB images.
We provide a modular API (HamerHelper()
) and an example script (inference.py
).
- Set up an environment with the original HaMeR repo: https://github.com/geopavlakos/hamer
- Make sure the HaMeR demo script works.
pip install git+https://github.com/brentyi/hamer_helper.git
$ python inference.py --help
usage: inference.py [-h] --input-dir PATH --output-dir PATH [--search-ext [STR [STR ...]]]
For each image in the input directory, run HaMeR and composite the detections.
╭─ options ─────────────────────────────────────────────────────────────────────────────────────────────────╮
│ -h, --help show this help message and exit │
│ --input-dir PATH The directory to search for images. (required) │
│ --output-dir PATH The directory to write the composited images. (required) │
│ --search-ext [STR [STR ...]] │
│ Image extensions to search for in the input directory. (default: .jpg .jpeg .png) │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯