Add InstantHMR weights for ComfyUI-InstantHMR
Browse filesFiles changed (6)
- README.mdAdded+77
- instanthmr_medium.safetensorsAdded+3
- instanthmr_medium_commercial.safetensorsAdded+3
- instanthmr_nano.safetensorsAdded+3
- instanthmr_small.safetensorsAdded+3
- instanthmr_tiny.safetensorsAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677---license: otherlicense_name: per-filelibrary_name: comfyuipipeline_tag: keypoint-detectiontags: - comfyui - human-mesh-recovery - 3d-human - pose-estimation - mhrbase_model: momolesang/InstantHMR---
English | [中文](#中文)
# InstantHMR for ComfyUI
[InstantHMR](https://github.com/Naturalpad-studio/InstantHMR) weights repackaged as single `.safetensors` files for the [ComfyUI-InstantHMR](https://github.com/jtydhr88/ComfyUI-InstantHMR) node pack. Each file holds the network and the MHR body rig it was trained with, so it loads with no other model. The output is the same MHR body as ComfyUI's native SAM 3D Body nodes, ready for their smoothing, rendering and GLB / BVH export.
Put the files in `ComfyUI/models/detection` and pick one in `Load InstantHMR Model`.
| File | Backbone | Parameters | 3DPW PA-MPJPE (mm) | Licence || --- | --- | --- | --- | --- || `instanthmr_nano.safetensors` | HGNetV2-B0 | 20.0 M | 46.6 | CC BY-NC 4.0 || `instanthmr_tiny.safetensors` | HGNetV2-B1 | 20.3 M | 44.0 | CC BY-NC 4.0 || `instanthmr_small.safetensors` | HGNetV2-B2 | 24.4 M | 41.7 | CC BY-NC 4.0 || `instanthmr_medium.safetensors` | HGNetV2-B4 | 32.2 M | 40.0 | CC BY-NC 4.0 || `instanthmr_medium_commercial.safetensors` | HGNetV2-B4 | 32.2 M | 50.7 | Apache-2.0 |
## Licence
Each file keeps the licence of the upstream release it was converted from ([momolesang/InstantHMR](https://huggingface.co/momolesang/InstantHMR)):
- `nano`, `tiny`, `small`, `medium`: CC BY-NC 4.0, for non-commercial use. Their training data allows research use only.- `medium_commercial`: Apache-2.0. Trained only on Harmony4D and COCO images under CC BY or with no known copyright.- The MHR body rig inside every file comes from Meta's [MHR](https://github.com/facebookresearch/MHR) (Apache-2.0).
## Conversion
Converted from the official ONNX graphs with `scripts/convert_onnx.py` in the node pack, which checks the result against the ONNX graph with onnxruntime (outputs match to about 1e-5).
## Credits
InstantHMR by Mohamed Adjel, Kahina Chalabi and Vincent Bonnet ([paper](https://hal.science/hal-05854387), [code](https://github.com/Naturalpad-studio/InstantHMR)). MHR body model by Meta.
---
## 中文
[InstantHMR](https://github.com/Naturalpad-studio/InstantHMR) 的权重,重新打包成单个 `.safetensors` 文件,供 [ComfyUI-InstantHMR](https://github.com/jtydhr88/ComfyUI-InstantHMR) 节点包使用。每个文件都包含网络和它训练时用的 MHR 人体骨架,不需要额外的模型。输出的 MHR 人体和 ComfyUI 内置 SAM 3D Body 节点一致,可以直接接它们的平滑、渲染和 GLB / BVH 导出。
把文件放到 `ComfyUI/models/detection`,在 `Load InstantHMR Model` 里选择即可。
| 文件 | 主干网络 | 参数量 | 3DPW PA-MPJPE (mm) | 许可证 || --- | --- | --- | --- | --- || `instanthmr_nano.safetensors` | HGNetV2-B0 | 2000 万 | 46.6 | CC BY-NC 4.0 || `instanthmr_tiny.safetensors` | HGNetV2-B1 | 2030 万 | 44.0 | CC BY-NC 4.0 || `instanthmr_small.safetensors` | HGNetV2-B2 | 2440 万 | 41.7 | CC BY-NC 4.0 || `instanthmr_medium.safetensors` | HGNetV2-B4 | 3220 万 | 40.0 | CC BY-NC 4.0 || `instanthmr_medium_commercial.safetensors` | HGNetV2-B4 | 3220 万 | 50.7 | Apache-2.0 |
### 许可证
每个文件沿用它对应的上游发布文件([momolesang/InstantHMR](https://huggingface.co/momolesang/InstantHMR))的许可证:
- `nano`、`tiny`、`small`、`medium`:CC BY-NC 4.0,仅限非商业使用,训练数据只允许研究用途。- `medium_commercial`:Apache-2.0,只用 Harmony4D 和 CC BY 或无已知版权的 COCO 图片训练。- 每个文件里的 MHR 人体骨架来自 Meta 的 [MHR](https://github.com/facebookresearch/MHR)(Apache-2.0)。
### 转换方式
用节点包里的 `scripts/convert_onnx.py` 从官方 ONNX 计算图转换,并用 onnxruntime 和 ONNX 计算图逐项比对(输出误差约 1e-5)。
### 致谢
InstantHMR 作者 Mohamed Adjel、Kahina Chalabi、Vincent Bonnet([论文](https://hal.science/hal-05854387)、[代码](https://github.com/Naturalpad-studio/InstantHMR))。MHR 人体模型来自 Meta。123version https://git-lfs.github.com/spec/v1oid sha256:76bd71c76683b5c0ea156b8b9c527b8f392832701c3a0377f81b8ba14277ca5esize 180730516123version https://git-lfs.github.com/spec/v1oid sha256:6fb700552d994da13f8c35434dbcd5836ee01eeba1bba7026764cf06fb7c7d42size 180730516123version https://git-lfs.github.com/spec/v1oid sha256:8180e318041ae228e40cf1704ac6773540f29a347f9f77283015635b6c97b363size 131881820123version https://git-lfs.github.com/spec/v1oid sha256:c37c208c94a23a63f2af03083f96c77cdc2c3bf14b4b8aedaf4cf3c90f7c9ce4size 149612236123version https://git-lfs.github.com/spec/v1oid sha256:3ce841ef1988ec3ac777e925ebe873dec4b0cc9dc50e9f094d5dda78e8d37babsize 133264676README.mdAdded+77
instanthmr_medium.safetensorsAdded+3
instanthmr_medium_commercial.safetensorsAdded+3
instanthmr_nano.safetensorsAdded+3
instanthmr_small.safetensorsAdded+3
instanthmr_tiny.safetensorsAdded+3