|
EmotiEffLib
Python implementation of Emotion Efficient Library
|
Functions | |
| _single_attention_model (n_classes, weights, feature_vector_dim, samples=None) | |
| get_engagement_model (feature_vector_dim, number_of_frames) | |
Variables | |
| bool | TF_AVAILABLE = True |
Engagement classification model implementation
|
protected |
Build a single attention classification model.
Args:
n_classes (int): The number of output classes.
weights (str): Path to the pre-trained model weights.
feature_vector_dim (int): The dimensionality of the input feature vectors.
Must be 2560; otherwise, a ValueError is raised.
samples (int, optional): The number of samples in the input sequence. Defaults to None.
Returns:
Model: A Keras model implementing attention-based classification.
Raises:
ValueError: If the feature vector dimension is not 2560.
Definition at line 26 of file engagement_classification_model.py.
| emotiefflib.engagement_classification_model.get_engagement_model | ( | feature_vector_dim, | |
| number_of_frames ) |
Load and return the engagement classification model.
Args:
feature_vector_dim (int): The dimensionality of the input feature vectors.
number_of_frames (int): The number of frames in the input sequence.
Returns:
Model: A Keras model for engagement classification.
Definition at line 73 of file engagement_classification_model.py.
| bool emotiefflib.engagement_classification_model.TF_AVAILABLE = True |
Definition at line 8 of file engagement_classification_model.py.