RF-DETR Keypoint Preview

RF_DETR_KEYPOINT_PREVIEW

Finds every person in a photo and returns their 17 body keypoints (nose, eyes, ears, shoulders, elbows, wrists, hips, knees, ankles) with a box and score, as JSON in the photo's own pixels. Fine-tune it on your own keypoint labels.

Utilitiespose-estimationkeypointsbodyreal-timerf-detrapache-2.0Fine-tunable
RF-DETR Keypoint Preview: Utilities model on Kainguru

About RF-DETR Keypoint Preview

Capabilities

  • Body keypoints — 17 a person: nose, eyes, ears, shoulders, elbows, wrists, hips, knees and ankles, each with a confidence
  • Every person — up to 50 people a photo, best first, each with its box and score, found in one pass
  • Pixel coordinates — keypoints and boxes in the photo's own pixels
  • Fine-tunable — train it on your own pictures with their keypoints

Good to know

  • Photos up to 30 MB and 40 megapixels, as PNG, JPEG or WebP. The model sees the photo squashed to 576 x 576 pixels, so very small people in a large photo can be missed; the results are in the photo's own pixels as displayed (after its EXIF rotation).
  • Keypoints follow the COCO order: nose, left eye, right eye, left ear, right ear, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, left knee, right knee, left ankle, right ankle. Each is [x, y, score]; the score is the probability that the keypoint can be found, so hidden ones usually score low and are worth filtering on.
  • The default person score threshold is 0.5; lower it to find more, less certain people. At most 50 people are returned, best first.
  • Roboflow publishes this model as a preview and may change it in later releases; the version served here stays fixed.
  • Fine-tuning takes one ZIP (at most 4 GB, 5000 entries, no password) with 4 to 1000 pictures (each up to 30 MB and 40 megapixels) and a manifest.jsonl with one line per picture: {"file": "photos/a.jpg", "people": [{"box": [x0, y0, x1, y1], "keypoints": [[x, y], null, ...]}]}. Paths are relative to the manifest, and manifest.jsonl is at most 64 MB.
  • A person has 17 keypoints in the order above: [x, y] (visible) or [x, y, v] with v 0 not labelled, 1 labelled but hidden and 2 visible, in pixels of the picture as displayed, or null where unknown; keypoints not given are not trained. A person without a box (null) gets the box of its known keypoints grown by 10 percent on every side and needs at least 2 of them. Up to 50 people a picture and 3000 in all.
  • Training keeps each picture at up to 1024 pixels on the longer side, uses the package's own set loss (matching of predicted to labelled people, with box, keypoint and visibility terms), mirrors half of the pictures with left and right keypoints swapped, and stops after 5,000 steps or 9 hours, whichever comes first, keeping what it learned. The class stays one: person.

Attribution

RF-DETR by Roboflow (rf-detr), released under the Apache License 2.0, built on LW-DETR by Baidu and Deformable DETR; its backbone is DINOv2 by Meta, also Apache License 2.0. The keypoint weights were trained on COCO person keypoints.

RF-DETR Keypoint Preview inputs and output

NameTypeRequiredDefaultDetails
imagefileYes—The picture: PNG, JPEG or WebP, at most 30 MB and 40 megapixels.
1–2048 characters · image/png, jpeg, webp
max_peopleintegerNo20The most people to return, best first.
1–50
score_thresholdnumberNo0.5Lowest detection score of a returned person, 0 to 1; higher returns fewer, surer people.
0–1

Output. JSON array, best first: [{"score", "box": [x0, y0, x1, y1], "keypoints": [[x, y, score], ...]}] in pixels; 17 COCO body keypoints a person. At most 50 people.

Run RF-DETR Keypoint Preview with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=RF_DETR_KEYPOINT_PREVIEW" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "max_people": 20,
    "score_threshold": 0.5
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "RF_DETR_KEYPOINT_PREVIEW",
        {
          "image": "https://example.com/input.png",
          "max_people": 20,
          "score_threshold": 0.5
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune RF-DETR Keypoint Preview

You can fine-tune RF-DETR Keypoint Preview on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 1000 pictures and a manifest.jsonl: one line per picture, {"file", "people": [{"box", "keypoints"}]}, 17 keypoints a person. More rules: Good to know, in the README.

The steps are in the docs.

RF-DETR Keypoint Preview pricing

Price per request: 0.0437 credits ($0.000437). The price is shown again before every run; all prices are on the pricing page.

Licence and source

DWPose Wholebody: Utilities model on Kainguru
Utilities

DWPose Wholebody

Finds every person in a photo and returns 133 keypoints for each: body, feet, face and both hands, as JSON in the…

Fine-tunable
RF-DETR Seg 2XLarge: Utilities model on Kainguru
Utilities

RF-DETR Seg 2XLarge

Finds every object of 80 everyday kinds in a picture, such as people, vehicles, animals and furniture, and outlines…

Fine-tunable
SAM 2.1 Hiera Large: Utilities model on Kainguru
Utilities

SAM 2.1 Hiera Large

Click or draw a box on an object and get back a mask outlining it.

Fine-tunable
Grounded SAM 2: Utilities model on Kainguru
Utilities

Grounded SAM 2

Outlines the things you name in a picture, such as "red car, person with a helmet", with a mask and a box for each one.

Fine-tunable
Depth Anything v2 Small: Utilities model on Kainguru
Utilities

Depth Anything v2 Small

Turns any photo into a depth map that shows which parts are near and which are far.

Fine-tunable
LightGlue DISK: Utilities model on Kainguru
Utilities

LightGlue DISK

Finds the points two pictures have in common and pairs them up: send two photos of one scene and get the matching…

Fine-tunable