Speech Emotion Recognition models and training using Tensorflow 2.x
Project description
Vistec-AIS Speech Emotion Recognition
Speech Emotion Recognition Model and Inferencing using Tensorflow 2.x
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
Docker
TODO
Usage
Train with Your Own Data
Preparing Data
To train with your own data, you need to prepare 2 files:
config.yml(see an example in tests/config.yml) - This file contains a configuration for extracting features and features augmentation.labels.csv- This will be a.csvfile containing 2 columns mapping audio path to its emotion.- Your
.csvfile should contain a header (as we will skip the first line when reading). - Currently, we only support 5 emotions (
neutral,anger,happiness,sadness, andfrustration) if you want to add more, modifyEMOTIONSvariable in dataloader.py
- Your
Preparing a model
Now, prepare your model, you can implement your own model using tf.keras.Sequential or using provided model
in models.py.
Training
For training a model, create a DataLoader object and use method .get_dataset to get tf.data.Dataset used
for training. DataLoader will also use FeatureLoader which will read config.yml.
The dataset will automatically pad a batch according to the longest sequence length.
Inferencing using pretrained weight
TODO
Reference
This repository was structured based on TensorflowASR repository by Huy Le Nguyen (@usimarit). Please check it out!
Author & Sponsor
Chompakorn Chaksangchaichot
Email: chompakornc_pro@vistec.ac.th
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vistec-ser-0.2a2.tar.gz.
File metadata
- Download URL: vistec-ser-0.2a2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f805ba0d4cb21e75402a8a12013df0dc6bd96079b8a65af9fc126965104608bd
|
|
| MD5 |
f98fc7f602bc7be45a48c3fab0d4335e
|
|
| BLAKE2b-256 |
103d6cbe6b2b4a05f0f88fe703fbd8690c879d4c4facdb9cf56f39740ea729dd
|
File details
Details for the file vistec_ser-0.2a2-py3-none-any.whl.
File metadata
- Download URL: vistec_ser-0.2a2-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb102425f303b81e88cdf83e009326474be8335422a8009427dab7f0fd16d05
|
|
| MD5 |
902cd6b1558bae7bb51c30d6e759d78d
|
|
| BLAKE2b-256 |
230414d30bf01eab91ea31cb358926d9faea110fc87bc62e795457a9fb7c32b4
|