tawheed-tariq commited on
Commit
e51c835
ยท
verified ยท
1 Parent(s): 4376243

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -3
README.md CHANGED
@@ -1,3 +1,80 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - emotion-detection
5
+ - affective-computing
6
+ - classification
7
+ - cnn
8
+ datasets:
9
+ - custom
10
+ model-index:
11
+ - name: AffectSense
12
+ results: []
13
+ ---
14
+
15
+ # ๐Ÿง  AffectSense
16
+
17
+ **AffectSense** is a Convolutional Neural Network (CNN)-based model designed for emotion and affect recognition from visual or image-based data. The model leverages a pre-trained **ResNet-50** backbone and has been fine-tuned for affective computing tasks such as emotion classification and mood detection.
18
+
19
+ ## ๐Ÿš€ Usage
20
+
21
+ You can load a model like this:
22
+
23
+ ```python
24
+ import torch
25
+ from torchvision import models
26
+
27
+ # Load the model (example if using torch.load)
28
+ model = torch.load("path_to_checkpoint.pth")
29
+ model.eval()
30
+ ```
31
+
32
+ > Or, if packaged in a model class:
33
+
34
+ ```python
35
+ from affectsense import AffectSenseModel
36
+
37
+ model = AffectSenseModel.from_pretrained("tawheed-tariq/AffectSense")
38
+ ```
39
+
40
+ ## ๐Ÿ“Š Intended Uses & Limitations
41
+
42
+ ### Use Cases
43
+ - Emotion recognition from facial images
44
+ - Affective content tagging in videos
45
+ - Visual mood estimation
46
+ - Human-computer interaction systems
47
+
48
+ ### Limitations
49
+ - May not generalize well across unseen demographics or lighting conditions
50
+ - Not suitable for clinical diagnosis
51
+ - Accuracy depends on the diversity of training data
52
+
53
+ ## ๐Ÿ—๏ธ Model Architecture
54
+
55
+ - **Backbone**: ResNet-50 (pre-trained on ImageNet)
56
+ - **Modified Head**: Custom classification head for emotion categories
57
+ - **Input Size**: Typically 224ร—224 RGB images
58
+
59
+ ## ๐Ÿ“ Training Data
60
+
61
+ The models were trained on custom-curated datasets with emotion-labeled visual data. Examples include facial emotion datasets or affective scene datasets.
62
+
63
+ ## ๐Ÿ“œ License
64
+
65
+ This model is licensed under the Apache 2.0 License.
66
+
67
+ ## โœ๏ธ Citation
68
+
69
+ If you use this model in your research, please cite:
70
+
71
+ ```
72
+ @misc{affectsense2025,
73
+ title={AffectSense: CNN-based Emotion Recognition Model using ResNet-50},
74
+ author={Tariq, Tavaheed},
75
+ year={2025},
76
+ howpublished={\url{https://huggingface.co/tawheed-tariq/AffectSense}},
77
+ }
78
+ ```
79
+
80
+ ---