Pictograph Research

PG-COCO-Pose

Pictograph Research · Keypoint detection · Trained 6h ago · Custom license

Sign in to import View on Hugging Face

Model Card

PG-COCO-Pose

A keypoint detection model (RF-DETR Keypoint Preview), locating each person and its 17 keypoints, scoring 73.2% OKS.

Pictograph Research · Keypoint Detection · RF-DETR Keypoint Preview · FP32 · a custom license · Public

Overview

This is a keypoint detection model built on RF-DETR Keypoint Preview, trained on the COCO 2017 Pose dataset. It expects 576x576 input and runs in FP32 precision. It finds each person and its 17 keypoints: the Skeleton section lists them in output order, with the joints each connects to.

Performance

Headline: 73.2% OKS.

Metric Value
OKS73.2%
OKS@5089.1%
OKS@7579.2%
Recall78.8%

OKS is COCO's keypoint AP: the average precision over object keypoint similarity (OKS) thresholds 0.50 to 0.95. OKS@50 and OKS@75 are the AP at one threshold; Recall is the average recall over 0.50 to 0.95.

Skeleton

Each object the model finds is one instance: its keypoints share an instance_id, are named for their joint and carry their own confidence. The keypoint index is the model's output order.

# Keypoint Connects to
0noseleft_eye, right_eye
1left_eyeright_eye, nose, left_ear
2right_eyeleft_eye, nose, right_ear
3left_earleft_eye, left_shoulder
4right_earright_eye, right_shoulder
5left_shoulderleft_hip, right_shoulder, left_elbow, left_ear
6right_shoulderright_hip, left_shoulder, right_elbow, right_ear
7left_elbowleft_shoulder, left_wrist
8right_elbowright_shoulder, right_wrist
9left_wristleft_elbow
10right_wristright_elbow
11left_hipleft_knee, right_hip, left_shoulder
12right_hipright_knee, left_hip, right_shoulder
13left_kneeleft_ankle, left_hip
14right_kneeright_ankle, right_hip
15left_ankleleft_knee
16right_ankleright_knee

Training

Setting Value
Base datasetCOCO 2017 Pose
ExportCOCO 2017 Pose-select
Dataset size10,799 images
Input size576x576
Epochs12
Batch size4
Learning rate0.0001
Model sizepreview
PrecisionFP32
Version1.0.0

Use this model

Run inference with the Pictograph SDK:

from pictograph import Client, get_model, KeypointModel, KeypointResult

client = Client(api_key="pk_live_...")  # Settings -> API Keys

# Downloads + caches the weights on first use
model: KeypointModel = get_model(
    name="PG-COCO-Pose",
    task="keypoint_detection",
    format="onnx",
    precision="fp32",
    device="cpu",
    client=client,
)
result: KeypointResult = model.predict(image="photo.jpg")
print(result)
# Fully offline (no API key) once you have the weights + config.json
from pictograph import load_model, KeypointModel, KeypointResult

model: KeypointModel = load_model(
    "/path/to/weights.onnx",
    "/path/to/config.json",
    task="keypoint_detection",
    format="onnx",
)
result: KeypointResult = model.predict(image="photo.jpg")

License

Released under a custom license.

Download the model files

Exports to ONNX · 147 MB · FP32. Sign in to download the weights and config, or pull it from the SDK with the Use Model snippet.

Sign in to download

COCO 2017 Pose

Pictograph Research Pictograph Research
69,730 images · 0 classes
Custom License Other
Non-commercial use only. Trained on COCO 2017 Pose, whose images are COCO's: the COCO Consortium does not own their copyright; each image comes from Flickr under its own license, recorded per image in COCO's annotation files, and most of them (68.9% of train2017) are Creative Commons NonCommercial. COCO's annotations are CC BY 4.0, the COCO Consortium. The RF-DETR Keypoint base model is Apache 2.0 (Roboflow). Cite Lin et al., Microsoft COCO: Common Objects in Context (ECCV 2014).

Join the discussion

Comments and reactions live in the app.

Sign in to comment

Build your first vision tool

$5 of free compute every month. No card required.