Views
No views yet
resnet18_finetuned_age_gender.pth1import torch
2from torchvision import models
3
4model = models.resnet18()
5state_dict = torch.hub.load_state_dict_from_url(
6 "https://huggingface.co/a23f2003713a/age-gender-resnet18/resolve/main/resnet18_finetuned_age_gender.pth",
7 map_location="cpu"
8)
9model.load_state_dict(state_dict)
10model.eval()
11
12## 📊 Applications
13- Facial demographic analytics
14- Age estimation
15- Gender classification
16- Pre-training for face attribute recognition
17- Computer vision educational projects
18
19---
20
21## 📜 Training Info
22The model was finetuned on an age/gender image dataset using:
23- Adam optimizer
24- Cross entropy loss
25- Image augmentations
26- ResNet18 backbone
27
28---
29
30## 📂 Files in this Model Repo
31- `resnet18_finetuned_age_gender.pth` — model weights
32- `README.md` — description and usage
33
34---
35
36### ✨ Author
37Model uploaded using Kaggle + HuggingFace Hub.
38