EmotiEffLib
Python implementation of Emotion Efficient Library
Loading...
Searching...
No Matches
EmotiEffLib Python implementation

EmotiEffLib is a Python library designed for efficient emotion and engagement recognition in images and videos. It supports multiple inference engines, including Torch and ONNX Runtime.

Installing

Install version of the library from actual code

  • Install EmotiEffLib with ONNX support:
    pip install .
  • Install EmotiEffLib with ONNX and Torch support:
    pip install .[torch]
  • Install EmotiEffLib with ONNX and TensorFlow support (the last one is necessary for enagement prediction):
    pip install .[engagement]
  • Install EmotiEffLib with all possible dependencies:
    pip install .[all]
    or
    pip install .[torch,engagement]

Install version of the library from PyPI

It is also possible to install it via pip:

  • Install EmotiEffLib with ONNX support:
    pip install emotiefflib
  • Install EmotiEffLib with ONNX and Torch support:
    pip install emotiefflib[torch]
  • Install EmotiEffLib with ONNX and TensorFlow support (the last one is necessary for enagement prediction):
    pip install emotiefflib[engagement]
  • Install EmotiEffLib with all possible dependencies:
    pip install emotiefflib[all]
    or
    pip install emotiefflib[torch,engagement]

Usage

Examples of usage EmotiEffLib you can find in the python examples section.

Running tests

Pytest framework is used for testing EmotiEffLib. To run the tests, you need to follow the following steps:

  1. Install dependencies:
    pip install -r tests/requirements.txt
  2. Download testing data:
    cd <emotiefflib_root>/tests
    ./download_test_data.sh
    tar -xzf data.tar.gz
    cd -
  1. Run tests:
    pytest <emotiefflib_root>/tests

License

The code of EmotiEffLib Python Library is released under the Apache-2.0 License. There is no limitation for both academic and commercial usage.