Ir para o conteúdo
ModelListadosExterno
Baixar

Efficientnet B7 Coco 256x192

A 2D human pose estimation model trained at DeKUT-DSAIL using the MMPose framework. Predicts 17 COCO keypoints from a single cropped person image.

TipoOtherVersãoModelBnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
293 MB
Versão
vModel
Atualizado
10 de out. de 2026
Fonte
Hugging Face

Descrição da fonte

EfficientNet-B7 Pose Estimation

A 2D human pose estimation model trained at DeKUT-DSAIL using the MMPose framework. Predicts 17 COCO keypoints from a single cropped person image.

PropertyValue
BackboneEfficientNet-B7
Attention NeckNone
Parameters~78 M
Input Size192 × 256
OutputHeatmaps (17, 64, 48)

Evaluation Results

Evaluated on COCO 2017 val using OKS-based metrics (top-down, GT bounding boxes).

MetricScore
COCO AP0.726
COCO AR0.763

Repository Files

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

Quick Start

Step 1 — Clone the repository

git clone https://huggingface.co/DeKUT-DSAIL/efficientnet_b7_coco_256x192
cd efficientnet_b7_coco_256x192

Step 2 — Create a virtual environment

Linux / macOS

python -m venv venv
source venv/bin/activate

Windows (Command Prompt)

python -m venv venv
venv\Scripts\activate.bat

Windows (PowerShell)

python -m venv venv
venv\Scripts\Activate.ps1

Step 3 — Install dependencies

pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt

GPU users: Replace the PyTorch URL with your CUDA version. See pytorch.org/get-started.

Step 4 — Run inference

import cv2
from model import PoseEstimator

estimator = PoseEstimator("DeKUT-DSAIL/efficientnet_b7_coco_256x192")

image = cv2.imread("pose.jpg")
keypoints, scores = estimator.predict(image)

print("Keypoints shape:", keypoints.shape)  # (N, 17, 2)
print("Scores shape:   ", scores.shape)     # (N, 17, 1)

annotated = estimator.visualize(image, keypoints, scores, score_threshold=0.3)
cv2.imwrite("output.jpg", annotated)
print("Saved output.jpg")

Input / Output Specification

PropertyValue
Input size(1, 3, 256, 192) — RGB, channel-first
NormalisationMean [0.485, 0.456, 0.406] / Std [0.229, 0.224, 0.225]
OutputHeatmaps (N, 17, 64, 48)
KeypointsCOCO 17-joint format

COCO 17 Keypoints

IndexNameIndexName
0nose9left_wrist
1left_eye10right_wrist
2right_eye11left_hip
3left_ear12right_hip
4right_ear13left_knee
5left_shoulder14right_knee
6right_shoulder15left_ankle
7left_elbow16right_ankle
8right_elbow

Training Details

Trained using MMPose on the following datasets:

DatasetLink
COCO 2017cocodataset.org
MPII Human Posempii.is.tue.mpg.de
CrowdPoseGitHub
OCHumanGitHub
ParameterValue
OptimizerAdamW
Learning rate1 × 10−3
LR scheduleMulti-step decay
Batch size64
Epochs210
Input size192 × 256
LossMSE on heatmaps + knowledge distillation loss

Architecture

Input Image (3, 256, 192)
        │
        ▼
  EfficientNet-B7 Backbone
        │
        │
        ▼
  HeatmapHead (3× deconv + 1×1 conv)
        │
        ▼
  Output Heatmaps (17, 64, 48)

Developed by

DeKUT-DSAIL — Dedan Kimathi University of Technology

  • Framework: PyTorch / MMPose
  • Model type: 2D Human Pose Estimation
  • Task: Keypoint Detection
  • License: Apache 2.0

Fontes

1 fonte
Hugging FacePrimárioVersão c9891ed1ae242c406596ec6af0ea83b09c8239b2
huggingface.co/DeKUT-DSAIL/efficientnet_b7_coco_256x192/tree/c9891ed1ae242c406596ec6af0ea83b09c8239b2

Verificado 10 de out.

Artefatos de modelo

1 artefato

model.safetensors

safetensors · 293 MB · SHA-256 546d888f3739…f5fb · Hugging Face

Download file

Trechos de fonte

2 trechos

--- license: apache-2.0 language: - en tags: - pose-estimation - human-pose-estimation - safetensors - keypoint-detection - computer-vision - pytorch - efficientnet - coco - mmpose datasets: - coco - mpii - crowdpose - ochuman metrics: - ap - ar library_name: pytorch pipeline_tag: keypoint-detection --- # EfficientNet-B7 Pose Estimation A 2D human pose estimation model trained at **DeKUT-DSAIL** using the [MMPose](https://github.com/open-mmlab/mmpose) framework. Predicts **17 COCO keypoints** from a single cropped person image. | Property | Value | |---|---| | Backbone | EfficientNet-B7 | | Attention Neck | None | | Parameters | ~78 M | | Input Size | 192 × 256 | | Output | Heatmaps (17, 64, 48) | --- ## Evaluation Results Evaluated on **COCO 2017 val** using OKS-based metrics (top-down, GT bounding boxes). | Metric | Score | |---|---| | **COCO AP** | **0.726** | | **COCO AR** | **0.763** | --- ## Repository Files ``` 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 ``` --- ## Quick Start ### Step 1 — Clone the repository ```bash git clone https://huggingface.co/DeKUT-DSAIL/efficientnet_b7_coco_256x192 cd efficientnet_b7_coco_256x192 ``` ### Step 2 — Create a virtual environment **Linux / macOS** ```bash python -m venv venv source venv/bin/activate ``` **Windows (Command Prompt)** ```cmd python -m venv venv venv\Scripts\activate.bat ``` **Windows (PowerShell)** ```powershell python -m venv venv venv\Scripts\Activate.ps1 ``` ### Step 3 — Install dependencies ```bash pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu pip install -r requirements.txt ``` > **GPU users:** Replace the PyTorch URL with your CUDA version. > See [pytorch.org/get-started](https://pytorch.org/get-started/locally/). ### Step 4 — Run inference ```python import cv2 from model import PoseEstimator estimator = PoseEstimator("DeKUT-DSAIL/efficientnet_b7_coco_256x192") image = cv2.imread("pose.jpg") keypoints, scores = estimator.predict(image) print("Keypoints shape:", keypoints.shape) # (N, 17, 2) print("Scores shape: ", scores.shape) # (N, 17, 1) annotated = estimator.visualize(image, keypoints, scores, score_threshold=0.3) cv2.imwrite("output.jpg", annotated)...

Source context: 0 downloads · 1 likes · Pipeline keypoint-detection · Library pytorch · Repo DeKUT-DSAIL/efficientnet_b7_coco_256x192