Skip to content

leo922oel/AI_Pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Pet

A Constant Personalized Companion

Emotion model

Structure

├── models/                
│   ├── base.py            // base of all model
│   ├── dnn                // nn model
│   │   ├── dnn.py         // base of nn
│   │   ├── cnn.py         // CNN
│   │   └── lstm.py        // LSTM
│   └── ml.py              // SVM & MLP
│
├── extract_feats/         // extract features
│   └── librosa.py         // extract features by librosa
├── utils/
│   └── config.py          // call parameters by config
├── features/              // save the setting feature file
├── checkpoint/            // save the check point of trained model
├── train.py               // train model
├── predict.py             // prediction
└── preprocess.py          // preprocess the original datak
└── training_dataset/      //  trianing data

Preprocess

New training dataset should preprocess first to set the feature file.

python preprocess.py

quick train

Use training data to build the model. The name of files follows the format :

{*}-{*}-{the emotion label}-{...}.wav
python train.py

quick test

  • Currently, The model is the building cnn.
  • The path way of the test file can modify in the predict.py : audio_path = "{file path}"
  • each time predicts a data only.
python predict.py

Dataset

Voice Model

Output .Gif file

mood tag

Happy
Sad
Angry
Neutral
Calm
Fearful
Disgust
Surprised

About

ML team19 final project : AI pet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors