CustomCNN + RTMCCHead (COCO 2D Pose)

Top-down 2D pose estimation models (CustomSmallCNN + RTMCCHead) trained on COCO 256x192, stored as .safetensors under models/ with standalone PyTorch inference in pose.py.

Variant Weights Params GFLOPs AP AP50 AP75 AR
small models/small_rtmcc.safetensors 2.30M 0.194 63.62% 88.47% 71.17% 66.62%
medium (default) models/medium_rtmcc.safetensors 4.15M 0.402 69.05% 90.62% 76.57% 71.96%
large models/large_rtmcc.safetensors 6.69M 0.689 71.51% 91.58% 78.58% 74.27%
  • Input: 192x256 (W x H) RGB crop, normalized with mean [123.675, 116.28, 103.53] and std [58.395, 57.12, 57.375].
  • Default: medium is loaded if variant is omitted ("small", "medium", or "large").

Setup

python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

Usage

from pose import PoseEstimator, draw_pose

# Loads "medium" by default; pass variant="small" or variant="large" to switch
clf = PoseEstimator.from_pretrained("DeKUT-DSAIL/cakd-coco-2d-pose")
keypoints, scores = clf.predict("image.jpg")
print(keypoints.shape, scores.shape)

# Render COCO skeleton edges & color palette to output_pose.jpg
draw_pose("image.jpg", keypoints, scores, out_file="output_pose.jpg")

Keypoints

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

Downloads last month
34
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support