Comments (4)
@AryaAftab
Hi, please help for test models
from light-sernet.
@kananmammad
Hi, kananmammad
The best model in 10 fold-cross validation was saved in TFLite format. You can use the TensorFlow lite tutorial in this site to learn how to deploy your trained TensorFlow Lite model on edge devices such as mobile and Raspberry Pi. If you have more questions feel free and ask.
from light-sernet.
@AryaAftab I don't have Rasperry PI, I use Ubuntu 20.04.3 LTS
There is train model with code in your project, but there isn't test the model with code
python train.py -dn "IEMOCAP" \
-id 7 \
-at "impro" \
-ln "cross_entropy" \
-v 1 \
-it "mfcc"
Please, tell me how do I test this model with code ?
from light-sernet.
Inside the train.py file, the desired model is evaluated in each fold after training, and confusion matrices were saved in result folder. For a separate test, you can use the functions prepared in tflite_evaluate.py to evaluate your model:
Example:
from tflite_evaluate import evaluate_model
BuffX = ... # Your mfccs (size : (batch_size, n_frame, n_mfcc, 1))
BuffY = ... # Your Labels (size : (batch_size, ))
evaluate_model(best_modelname_float32, model_type="float32", test_audios=BuffX, test_labels=BuffY)
from light-sernet.
Related Issues (9)
- InvalidArgumentError: Cannot batch tensors with different shapes in component 0. HOT 1
- cannot run the IEMOCAP dataset on windows HOT 24
- function cleaning_directory_filename()
- About the license for this model HOT 2
- MFCC hop size problem.
- Test data seen during training - correct results?
- code_error
- data_read_error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from light-sernet.