A 2D human pose estimation model trained at
DeKUT-DSAIL using the
MMPose framework. Predicts
17 COCO keypoints from a single cropped person image.
model.safetensors # Model weights (safetensors format)
model.py # Self-contained PoseEstimator inference helper
requirements.txt # Python dependencies
pose.jpg # Example test image
README.md # This model card
1git clone https://huggingface.co/DeKUT-DSAIL/fasternet_s_cbam_coco_256x192
2cd fasternet_s_cbam_coco_256x192
1python -m venv venv
2source venv/bin/activate
1python -m venv venv
2venv\Scripts\activate.bat
1python -m venv venv
2venv\Scripts\Activate.ps1
1pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
2pip install -r requirements.txt
1import cv2
2from model import PoseEstimator
3
4estimator = PoseEstimator("DeKUT-DSAIL/fasternet_s_cbam_coco_256x192")
5
6image = cv2.imread("pose.jpg")
7keypoints, scores = estimator.predict(image)
8
9print("Keypoints shape:", keypoints.shape) # (N, 17, 2)
10print("Scores shape: ", scores.shape) # (N, 17, 1)
11
12annotated = estimator.visualize(image, keypoints, scores, score_threshold=0.3)
13cv2.imwrite("output.jpg", annotated)
14print("Saved output.jpg")
Trained using
MMPose on the following datasets:
Input Image (3, 256, 192)
│
▼
FasterNet-S Backbone
│
▼
CBAM Attention Neck
│
▼
HeatmapHead (3× deconv + 1×1 conv)
│
▼
Output Heatmaps (17, 64, 48)