|
Download code/README.md from changh95/hamer-p150: direct link, hf CLI and curl.
- Browser
- Download file 768 Bytes
-
https://huggingface.co/changh95/hamer-p150/resolve/main/code/README.md
- Command line
-
hf download hf://changh95/hamer-p150/code/README.md
-
curl -L -o README.md https://huggingface.co/changh95/hamer-p150/resolve/main/code/README.md
768 Bytes
hamer (code/)
The hamer Python package: HaMeR hand mesh recovery on a Tenstorrent Blackhole chip, plus its HTTP server
(hamer.server.app). Install into an environment that already has a built tt-metal / ttnn:
pip install -e code/ # or: pip install code/
from hamer import HamerModel
with HamerModel.from_pretrained(device_id=0) as model: # also warms up all call variants
hand = model("media/sample1.jpg", bbox=[20, 170, 295, 260], is_right=True) # path relative to the repo root
from_pretrained warms up the device and all call variants, so the first call is as fast as the later calls.
Install code/[server,test] for the HTTP server and the tests.
Full API reference: PYTHON.md at the repository root.