Run this model with HF Jobs
Run vanch007/DWPose-RTMW-L-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/vanch007/DWPose-RTMW-L-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/vanch007/DWPose-RTMW-L-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use vanch007/DWPose-RTMW-L-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vanch007/DWPose-RTMW-L-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download vanch007/DWPose-RTMW-L-MLX --local-dir DWPose-RTMW-L-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
DWPose-RTMW-L-MLX (vanch007/DWPose-RTMW-L-MLX)
Pure Apple Silicon MLX checkpoints for RTMW-DW-X-L (133-keypoint WholeBody pose estimator) and YOLOX-M HumanArt (640Γ640 human detector), pre-converted to NHWC-aware .safetensors + static operator graphs for zero-PyTorch, zero-ONNXRuntime execution via mlx-dwpose.
- GitHub Package:
vanch007/mlx-dwpose - Upstream Weights: IDEA-Research/DWPose Β· OpenMMLab MMPose (
Apache-2.0)
Files Included
| File | Precision | Size (MiB) | Purpose |
|---|---|---|---|
rtmw_dw_x_l_fp16.safetensors |
Mixed (fp16 backbone + fp32 SimCC/GAU head) |
110.37 | Recommended RTMW-DW-X-L pose checkpoint |
rtmw_dw_x_l_fp32.safetensors |
Full fp32 |
218.10 | Full-precision RTMW-DW-X-L pose checkpoint |
rtmw_dw_x_l_graph.json |
β | 0.13 | NHWC static operator graph for RTMW-DW-X-L |
yolox_m_fp16.safetensors |
Mixed (fp16 backbone/neck + fp32 head/grid) |
48.50 | Recommended YOLOX-M human detector checkpoint |
yolox_m_fp32.safetensors |
Full fp32 |
96.67 | Full-precision YOLOX-M human detector checkpoint |
yolox_m_graph.json |
β | 0.10 | NHWC static operator graph (pre-NMS) for YOLOX-M |
Apple M3 Max Benchmarks (128 GiB, mlx==0.32.5)
Measured in isolated subprocesses (pmset -g therm: zero thermal/performance warnings; host loadavg 8.03 -> 11.37):
| Model & Backend | Batch = 1 | Batch = 16 | Batch = 64 | Cold Load |
|---|---|---|---|---|
DWPose ONNXRuntime CPU |
37.45 ms (26.7 fps) |
614.50 ms (26.0 fps) |
β | 0.048 s |
DWPose ONNXRuntime CoreML* |
14.97 ms (66.8 fps) |
65.86 ms (243.0 fps) |
β | 2.837 s |
DWPoseMLX fp16 |
10.36 ms (96.6 fps) |
35.94 ms (445.2 fps) |
162.80 ms (393.1 fps) |
0.007 s |
YOLOX-M ONNXRuntime CPU |
329.63 ms (3.03 fps) |
β | β | 0.024 s |
YOLOX-M ONNXRuntime CoreML |
CRASH ({1,1,1,8400,8400} vs {1,8400}) |
β | β | β |
YOLOXMLX fp16 |
24.45 ms (40.9 fps) |
192.47 ms (83.1 fps) (84.7 fps at b=8) |
β | 0.005 s |
*End-to-end 32-frame 1032Γ576 video (YOLOX-M + RTMW-DW-X-L -> OpenPose-134): rtmlib CPU 2.15 fps vs WholebodyMLX fp16 batched 53.13 fps (**24.7Γ speedup*).*
Numerical Parity vs ONNXRuntime CPU (16 Frames, 2,054 Valid Keypoints)
| Variant | Metric | Result |
|---|---|---|
DWPoseMLX fp32 |
SimCC max_abs (x / y) |
1.22e-5 / 1.90e-5 |
DWPoseMLX fp32 |
Keypoint error (mean / median / max) |
0.000 / 0.000 / 0.000 px |
DWPoseMLX fp16 (mixed FP32 head) |
Keypoint error (mean / median / max) |
0.040 / 0.000 / 4.90 px |
YOLOXMLX fp32 |
BBox IoU (min / mean) |
0.999999 / 1.000000 |
YOLOXMLX fp16 |
BBox IoU (min / mean) |
0.999626 / 0.999854 |
Usage
pip install git+https://github.com/vanch007/mlx-dwpose.git
mlx-dwpose image input.jpg -o skeleton.jpg --skeleton-only
import cv2
from mlx_dwpose import WholebodyMLX, draw_openpose
wb = WholebodyMLX.from_pretrained("vanch007/DWPose-RTMW-L-MLX", dtype="fp16")
img = cv2.imread("input.jpg")
kpts, scores = wb(img)
cv2.imwrite("skeleton.jpg", draw_openpose(img, kpts, scores))
License & Attribution
Derived from OpenMMLab MMPose (rtmw-dw-x-l_simcc-cocktail14_270e-256x192_20231122, yolox_m_8xb8-300e_humanart-c2c7a14a) and IDEA-Research DWPose checkpoints, distributed under Apache License 2.0.
- Downloads last month
- 24
Quantized