imadhavan commited on
Commit
f652076
·
verified ·
1 Parent(s): 0c18bb0

Initial FER2025 upload

Browse files
Files changed (9) hide show
  1. Angry.tar +3 -0
  2. Disgust.tar +3 -0
  3. Fear.tar +3 -0
  4. Happy.tar +3 -0
  5. Neutral.tar +3 -0
  6. README.md +94 -1
  7. Sad.tar +3 -0
  8. Surprise.tar +3 -0
  9. data.json +25 -0
Angry.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f5f43fd993cb9ba1065a02054404784b346427b51f4338770e5d25d413bda61
3
+ size 1322987520
Disgust.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58384ecdab2d1a22f8a64880e01c97d0ad50e89222c74ce1898efca09a657aeb
3
+ size 1492346880
Fear.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aecf418139b4f19b4f9cd7069a804e491b87e19c6fd1e61761a54d9261683b5f
3
+ size 1334405120
Happy.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bf96c577858dd0e54e884ad595f1ec890f98769075bd40ee7601ad27a1b105b
3
+ size 1255987200
Neutral.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eca095a604daebd05401d622069bdec51a83148184b4538fe3ade6bf4df2a4c0
3
+ size 1479782400
README.md CHANGED
@@ -1,3 +1,96 @@
 
 
 
 
 
 
1
  ---
2
- license: cc-by-nc-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FER2025 – Facial Expression Recognition Dataset
2
+
3
+ [![License: Research Use Only](https://img.shields.io/badge/License-Research%20Use%20Only-lightgrey.svg)](#license--attribution)
4
+ [![Total Images](https://img.shields.io/badge/Total%20Images-1.59M-blue)](#overview)
5
+ [![Classes](https://img.shields.io/badge/Classes-7-green)](#overview)
6
+
7
  ---
8
+
9
+ ## Overview
10
+
11
+ **FER2025** is a **large-scale, balanced facial emotion dataset** designed for **deep learning and computer vision research**. It contains **1,589,810 images** across **7 emotion classes**:
12
+
13
+ | Class | Images |
14
+ |------------|---------|
15
+ | Angry | 224,624 |
16
+ | Disgust | 239,366 |
17
+ | Fear | 223,466 |
18
+ | Happy | 222,082 |
19
+ | Neutral | 234,230 |
20
+ | Sad | 217,884 |
21
+ | Surprise | 228,158 |
22
+
23
+ **Image formats:** jpg, jpeg, png
24
+ **Balanced:** Maximum class difference ≈ 1.3%
25
+
26
+ FER2025 is suitable for **feature extraction, model training, and benchmarking**and**Training deep learning model**.
27
+
28
  ---
29
+
30
+ ## Dataset Structure
31
+
32
+ FER2025/
33
+ ├─ Angry.tar
34
+ ├─ Disgust.tar
35
+ ├─ Fear.tar
36
+ ├─ Happy.tar
37
+ ├─ Neutral.tar
38
+ ├─ Sad.tar
39
+ └─ Surprise.tar
40
+
41
+ Each TAR contains **images + corresponding `.cls` label files** for efficient streaming.
42
+
43
+ ---
44
+
45
+ ## Recommended Usage
46
+
47
+ - **Feature Extraction:** ResNet, EfficientNet, ViT embeddings
48
+ - **Training & Evaluation:** Balanced classes remove need for oversampling or class weighting
49
+ - **Large-Scale Training:** Use TAR/WebDataset format for GPU-efficient streaming
50
+
51
+ ---
52
+
53
+ ## Example: Loading FER2025 with PyTorch + WebDataset
54
+
55
+ ```python
56
+ import webdataset as wds
57
+ from torchvision import transforms
58
+ import torch
59
+
60
+ transform = transforms.Compose([
61
+ transforms.Resize((224,224)),
62
+ transforms.ToTensor(),
63
+ ])
64
+
65
+ dataset = (
66
+ wds.WebDataset("FER2025/{Angry,Disgust,Fear,Happy,Neutral,Sad,Surprise}.tar")
67
+ .decode("pil")
68
+ .to_tuple("jpg", "cls")
69
+ .map_tuple(transform, int)
70
+ )
71
+
72
+ loader = torch.utils.data.DataLoader(dataset, batch_size=64, num_workers=4, shuffle=True)
73
+
74
+ for images, labels in loader:
75
+ print(images.shape, labels.shape)
76
+ break
77
+ ```
78
+
79
+ ---
80
+
81
+ ## License & Ethical Use
82
+
83
+ **License:** CC BY-NC 4.0 – Attribution required, non-commercial use
84
+
85
+ **Ethical Use:** Images are sourced from publicly available data for research. Users must respect privacy and avoid commercial misuse.
86
+
87
+ ---
88
+
89
+ ## Citations
90
+
91
+ @dataset{FER2025,
92
+ author = {Adhavan M},
93
+ title = {FER2025: Large-Scale Balanced Facial Expression Dataset},
94
+ year = {2025},
95
+ url = {https://huggingface.co/datasets/imadhavan/FER2025}
96
+ }
Sad.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a83eba87a7d9558ebd475e7e7bf9792fec642a126fc896c5c3808652a605c983
3
+ size 1215180800
Surprise.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dead38930311f9b87b423b107f6df90b512dddf8374ccd365313afcd6435e060
3
+ size 1363671040
data.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "FER2025",
3
+ "description": "FER2025 is a large-scale, balanced facial emotion dataset containing 1,589,810 images across 7 emotion classes (Angry, Disgust, Fear, Happy, Neutral, Sad, Surprise). It is designed for feature extraction, model training, and benchmarking in computer vision and deep learning.",
4
+ "version": "1.0.0",
5
+ "total_images": 1589810,
6
+ "classes": ["Angry", "Disgust", "Fear", "Happy", "Neutral", "Sad", "Surprise"],
7
+ "formats": ["jpg", "jpeg", "png"],
8
+ "recommended_usage": [
9
+ "Feature extraction with CNNs or ViT",
10
+ "Training deep learning models",
11
+ "Benchmarking facial expression recognition algorithms"
12
+ ],
13
+ "dataset_structure": [
14
+ "Sharded TAR/WebDataset: FER2025/ClassName.tar (images + .cls labels)"
15
+ ],
16
+ "license": "Research-use-only",
17
+ "usage_notes": "FER2025 is for research and non-commercial purposes only. Users must respect the licenses of the original datasets included (FER2013, AffectNet, CK+, RAF-DB, etc.) and provide proper attribution.",
18
+ "source_datasets": [
19
+ {"name": "FER2013", "license": "CC BY-NC"},
20
+ {"name": "AffectNet", "license": "Research-use-only"},
21
+ {"name": "CK+", "license": "Research-use-only"},
22
+ {"name": "RAF-DB", "license": "Research-use-only"}
23
+ ],
24
+ "citation": "Adhavan M. FER2025: Large-Scale Balanced Facial Expression Dataset. 2025. URL: https://huggingface.co/datasets/imadhavan/FER2025"
25
+ }