Views
No views yet
ElenaRyumina/face_emotion_recognition.| File | Description |
|---|---|
emo_affectnet_static_float32.tflite | Converted TensorFlow Lite model. |
labels.txt | Output labels in model order. |
conversion_report.json | Conversion metadata and PyTorch-vs-TFLite parity check. |
infer_tflite.py | Minimal Python inference example. |
requirements.txt | Python dependencies for the inference example. |
ElenaRyumina/face_emotion_recognitionElenaRyumina/EMO-AffectNetModel[1, 224, 224, 3], float32, pixel range 0..255[1, 7]; apply softmax outside the modelpip install -r requirements.txtpython infer_tflite.py --image path/to/face.jpg1{
2 "top_label": "Happiness",
3 "top_score": 0.9123,
4 "predictions": [
5 {"label": "Happiness", "score": 0.9123},
6 {"label": "Neutral", "score": 0.0531},
7 {"label": "Surprise", "score": 0.0214}
8 ]
9}float32.[1, 224, 224, 3].0..1 unless you reconvert the model with a different input convention.31.4901161193847656e-065.336921825952837e-071.0conversion_report.json for the full metadata.1pip install -U huggingface_hub
2hf auth login
3hf repos create <namespace>/<repo-name>
4hf upload <namespace>/<repo-name> . . --repo-type model --exclude ".serena/*" --exclude "__pycache__/*"huggingface-cli upload, install Git LFS first so the .tflite file is stored correctly:1git lfs install
2git init
3git add .
4git commit -m "Add TFLite face emotion recognition model"
5git remote add origin https://huggingface.co/<namespace>/<repo-name>
6git push -u origin main1@article{RYUMINA2022,
2 title = {In Search of a Robust Facial Expressions Recognition Model: A Large-Scale Visual Cross-Corpus Study},
3 author = {Elena Ryumina and Denis Dresvyanskiy and Alexey Karpov},
4 journal = {Neurocomputing},
5 year = {2022},
6 doi = {10.1016/j.neucom.2022.10.013},
7 url = {https://www.sciencedirect.com/science/article/pii/S0925231222012656}
8}LICENSE and NOTICE.md.