All models

geopavlakos

HaMeR

About

HaMeR is an open-weight model from geopavlakos. 3D hand mesh recovery (ViT-H, MANO) on an image, tracked across a video, or on live video; RF-DETR and ViTPose+ find the hands. It accepts text, images, and video.

  • License

    —

    License on the weights.

Pricing

Token rates are US dollars per 1M tokens. Image rates are per 1K images. Audio rates are per 1M audio seconds.

RatePrice
Per 1K images$1

Compare

HaMeR is one of the catalog's pose models. The table is each model's published price, size, and context.

ModelWhat it doesPriceParametersContext
HaMeR3D hand mesh recovery (ViT-H, MANO) on an image, tracked across a video, or on live video; RF-DETR and ViTPose+ find the hands.$1 / 1K images——
ViTPose+ Large2D human pose estimation (ViT-L, 434M); RF-DETR person boxes, COCO 17 keypoints per person, on an image or tracked across a video.$1 / 1K images434M—

Benchmarks

Published scores for HaMeR, from the HaMeR paper.

Evals

A lower score is better.

ReadingExample
QualitativeClear structure, grounded in the input
QuantitativeFreiHAND F@5mm: 76.5.
Cost and performanceLower listed rate, mid-pack latency

Performance

Latency is the end-to-end round trip. Throughput is completion tokens divided by that time. It is a request rate, not decode speed.

  • Latency

    181 ms

  • Throughput

    —

  • Requests

    55

Examples

  • Person against a dark wall raising an open palm and a peace sign

    Hand pose, 21 keypoints per hand

    pose

Supported inputs

  • textIgnored

    A text part beside the media is accepted and ignored. A request with no media part is a 400.

  • image_urlYes

    One per request. A second image_url part is a 400.

  • video_urlYes

    One clip. Hands are tracked: each keeps a track_id. The top-level video_fps sets the person detector cadence (default 10); hand pose runs on every frame.

  • document_urlNo

    Not accepted.

  • pose is the only method.
  • Hands are found in two steps: RF-DETR boxes each person above body_conf, then ViTPose+ places the wrists and elbows that box each hand. HaMeR fits a MANO hand to every box.
  • Live video: WS /v1/ws. Open a session with {"model": "geopavlakos/hamer", "method": "pose"}, then send one JPEG per message.
  • Price: $1 per 1K images, $6 per hour of input video, and $3 per hour a live session is open, billed by the second. A call or a session bills at least $0.001.
  • Weights: geopavlakos/HaMeR. Aliases: hamer, geopavlakos/hamer:realtime.

Method parameters

ParameterDefaultDescription
body_conf0.5Minimum score for an RF-DETR person box. Hands are looked for on these people only.
hand_conf0.5Minimum ViTPose+ wrist confidence for a hand to be boxed and reported
rescale_factor2.0How far the hand box is expanded before the mesh is fit
include_meshfalsetrue adds each hand's MANO mesh (mesh_vertices_xyz, mesh_vertices_xy) and the 1,538 shared mesh_faces, once on the container

Methods

Methods this model serves. Payload shapes are in the docs.

MethodReturns
pose (default)One item per hand, with bbox_xywh, side, score, kpts_xy, kpts_xyz, pos_xyz, rot_wxyz, pose_params, and shape_params
pose (video)The same items with frame_id and track_id, beside the sampled frames

Estimate cost

$1.00

Quick start

Call this model on the OpenAI-compatible gateway. The model id is already filled in.

from openai import OpenAI

client = OpenAI(
    base_url="https://gateway.vlm.run/openai",
    api_key="<VLMRUN_API_KEY>",
)

response = client.chat.completions.create(
    model="geopavlakos/hamer",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.agent/lunch-skyscraper.jpg"
                    },
                },
            ],
        }
    ],
    extra_body={"method": "pose", "method_params": {"hand_conf": 0.5}},
)

print(response.choices[0].message.content)

Response

A single image returns the json block alone, with no wrapper:

{
  "object": "img.pose.hands3d",
  "items": [
    {
      "bbox_xywh": [0.3894, 0.6186, 0.0438, 0.0779],
      "kpts_xyz": [[0.0, 0.0, 0.0], [0.0065, 0.022, 0.0309], "..."],
      "score": 0.9429,
      "kpts_xy": [[0.4089, 0.6364], [0.4101, 0.6437], "..."],
      "pos_xyz": [-0.4838, 0.4074, 103.6968],
      "rot_wxyz": [0.5371, -0.1043, 0.1965, -0.8136],
      "pose_params": [0.0147, -0.4295, 0.5724, "..."],
      "shape_params": [0.0298, -0.0896, -0.043, "..."],
      "side": "right"
    },
    "..."
  ],
  "kpts_labels": ["wrist", "thumb_mcp", "thumb_pip", "thumb_dip", "thumb_tip", "..."],
  "params_model": "mano",
  "units": "m",
  "cam": { "model": "pinhole", "fx": 19.5312, "fy": 34.7222, "cx": 0.5, "cy": 0.5 }
}

side is left or right, and score is the ViTPose+ wrist confidence. Both joint lists hold the same 21 joints in OpenPose hand order, named once on the container by kpts_labels: the wrist, then the thumb, index, middle, ring and pinky fingers, four joints each from base to tip.

kpts_xyz is in metres, measured from the wrist, so the first joint is [0, 0, 0]. pos_xyz places the wrist in the camera frame, so a joint in camera coordinates is kpts_xyz[j] + pos_xyz. kpts_xy is the projection, normalized against the frame; a fingertip past the edge falls outside 0-1.

rot_wxyz is the global orientation as a quaternion, and pose_params (15 axis-angle joints) and shape_params (10 betas) are the MANO parameters, so params_model is mano. cam is the pinhole camera HaMeR assumes, normalized by the frame size: hand size and shape are metric, but the distance in pos_xyz holds only for that camera.

On a video, a hand's track_id follows its person: 2p - 1 for the left hand and 2p for the right hand of person p. frames lists every sampled frame, including frames with no hands in them.

Get an API key. Ship vision today.