AutumnQiu/fer2013
Viewer • Updated • 35.9k • 967 • 1
How to use iamnotpalak/personapath-mobilenetv2-emotion-fer2013 with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://iamnotpalak/personapath-mobilenetv2-emotion-fer2013")
This model is part of the PersonaPath project — a multi-modal AI system for assessing speaking skills such as confidence, pronunciation, and emotional expression.
Classes:
Initial training with frozen base layers (~52% validation accuracy)
Progressive unfreezing of top layers:
Lower layers retained for general feature extraction
Higher layers adapted for emotion-specific patterns
Loss: Sparse Categorical Crossentropy
Optimizer: Adam
Callbacks:
| Phase | Validation Accuracy |
|---|---|
| Frozen Base | ~52% |
| Fine-Tuned (Top 30) | ~60.66% |
| Fine-Tuned (Top 50) | Ongoing |
from tensorflow.keras.models import load_model
import cv2
import numpy as np
model = load_model("path_to_model")
img = cv2.imread("image.jpg")
img = cv2.resize(img, (224, 224))
img = img / 255.0
img = np.expand_dims(img, axis=0)
pred = model.predict(img)
This model is integrated into Phase 2 of the PersonaPath system.
Base model
Synaptics/MobileNetV2
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://iamnotpalak/personapath-mobilenetv2-emotion-fer2013")