This release is a pre-release and may not be stable for production use.
Vistec-AIS Speech Emotion Recognition
Speech Emotion Recognition Model and Inferencing using Pytorch
Installation
From Pypi
pip install vistec-ser
From source
git clone https://github.com/tann9949/vistec-ser.git
cd vistec-ser
python setup.py install
Usage
Training with THAI SER Dataset
We provide Google Colaboratory example for training the THAI SER dataset using our repository.
Training using provided scripts
Note that currently, this workflow only supports pre-loaded features. So it might comsume an additional overhead of ~2 Gb or RAM. To run the experiment. Run the following command
Since there are 80 studios recording and 20 zoom recording. We split the dataset into 10-fold, 10 studios each. Then evaluate using
k-fold cross validation method. We provide 2 k-fold experiments: including and excluding zoom recording. This can be configured
in config file (see examples/aisser.yaml)
python examples/train_fold_aisser.py --config-path <path-to-config> --n-iter <number-of-iterations>
Inferencing
We also implement a FastAPI backend server as an example of deploying a SER model. To run the server, run
cd examples
uvicorn server:app --reload
You can customize the server by modifying example/thaiser.yaml in inference field.
Once the server spawn, you can do HTTP POST request in form-data format. and JSON will return as the following format:
[
{
"name": <request-file-name>,
"prob": {
"neutral": <p(neu)>,
"anger": <p(ang)>,
"happiness": <p(hap)>,
"sadness": <p(sad)>
}
}, ...
]
See an example below:
Author & Sponsor
Chompakorn Chaksangchaichot
Email: chompakornc_pro@vistec.ac.th
Metadata
Release files for vistec-ser 0.4.6a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vistec-ser-0.4.6a3.tar.gz | 25.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vistec_ser-0.4.6a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.2 kB
Release files / vistec-ser-0.4.6a3.tar.gz
| Download URL | vistec-ser-0.4.6a3.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d631b51ff937aec5a4156d35f911b174a3eb1d68335b958a1a0b7e7c2ba784a
|
|
BLAKE2b-256 checksum How to use checksums |
b6a9598ed44abc5b587dd80e812d47e58f058683960470544deb391a48cdfa7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / vistec_ser-0.4.6a3-py3-none-any.whl
| Download URL | vistec_ser-0.4.6a3-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaa5b5525295873460bb3f02e428417420fe44668efea18f6cef4e3be5eeed3e
|
|
BLAKE2b-256 checksum How to use checksums |
bc0c7361509d641dd05750da0d204d6fd462484663b8c74636ca818d00add0d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|