Downloads · 30 days
0
abhshkp/footfall-analysis-age-svm
footfall-analysis-age-svm is a image classification model from abhshkp. Use it when you need a label for an image. The card lists the license as mit.
Classical computer vision age classifier that replicates the original PETA benchmark methodology (Deng et al., 2014). Part of the Footfall Analysis project.
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2026
Repo size
38 MB
Likes
0
Public
Click a slice to open those files.
.pkl38 MB · 100%
From the Hugging Face model README
Classical computer vision age classifier that replicates the original PETA benchmark
methodology (Deng et al., 2014).
Part of the Footfall Analysis project.
Each pedestrian crop is classified into one of four age buckets:
| Label | Age Range |
|---|---|
Age16-30 | 16 – 30 years |
Age31-45 | 31 – 45 years |
Age46-60 | 46 – 60 years |
AgeAbove61 | 61+ years |
Evaluated on the held-out PETA test split using per-attribute mean Accuracy (mA):
| Attribute | mA |
|---|---|
| Age16-30 | ~0.84 |
| Age31-45 | ~0.82 |
| Age46-60 | ~0.84 |
| AgeAbove61 | ~0.84 |
| Average | ~0.835 |
| File | Description |
|---|---|
age_classifier_bundle.pkl | Pickled dict: {attribute_name: sklearn SVM} |
from huggingface_hub import hf_hub_download
import pickle
# Download
pkl_path = hf_hub_download(
repo_id="abhshkp/footfall-analysis-age-svm",
filename="age_classifier_bundle.pkl"
)
with open(pkl_path, "rb") as f:
classifiers = pickle.load(f)
# classifiers is a dict: {"Age16-30": <SVM>, "Age31-45": <SVM>, ...}
# Pass your feature vector to each SVM:
# scores = {attr: clf.decision_function([feat_vec])[0] for attr, clf in classifiers.items()}
# prediction = max(scores, key=scores.get)
Note: You must extract features using the same region-based colour + LBP pipeline used during training (see age_classifier_v3.ipynb in the source repo).
Trained on the PETA dataset (~14,000 pedestrian images) using the attributes: personalLess30, personalLess45, personalLess60, personalLarger60.
@inproceedings{deng2014peta,
title={Pedestrian Attribute Recognition At Far Distance},
author={Deng, Yubin and Luo, Ping and Loy, Chen Change and Tang, Xiaoou},
booktitle={ACM Multimedia},
year={2014}
}