EmotiEffLib
Python implementation of Emotion Efficient Library
Loading...
Searching...
No Matches
emotiefflib.utils Namespace Reference

Functions

str download_model (str model_file, str path_in_repo)
str get_engagement_classification_weights ()
str get_model_path_onnx (str model_name)
str get_model_path_torch (str model_name)

Detailed Description

Module with internally used utils

Function Documentation

◆ download_model()

str emotiefflib.utils.download_model ( str model_file,
str path_in_repo )
Download model from github and save to cache directory.

Args:
    model_file (str): The name of the model (with file extension).
    path_in_repo (str): Path to the directory with model in repo.

Returns:
    str: The full path to the model file.

Definition at line 9 of file utils.py.

◆ get_engagement_classification_weights()

str emotiefflib.utils.get_engagement_classification_weights ( )
Return the local file path of engagement classification model.

Returns:
    str: The full path to the model file.

Definition at line 65 of file utils.py.

◆ get_model_path_onnx()

str emotiefflib.utils.get_model_path_onnx ( str model_name)
Return the local file path of an ONNX model based on the given model name.

Args:
    model_name (str): The name of the model (without file extension).

Returns:
    str: The full path to the model file.

Definition at line 50 of file utils.py.

◆ get_model_path_torch()

str emotiefflib.utils.get_model_path_torch ( str model_name)
Return the local file path of a Torch model based on the given model name.

Args:
    model_name (str): The name of the model (without file extension).

Returns:
    str: The full path to the model file.

Definition at line 35 of file utils.py.