Giter Club home page Giter Club logo

Comments (4)

kananmammad avatar kananmammad commented on June 30, 2024

@AryaAftab
Hi, please help for test models

from light-sernet.

AryaAftab avatar AryaAftab commented on June 30, 2024

@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.

kananmammad avatar kananmammad commented on June 30, 2024

@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.

AryaAftab avatar AryaAftab commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.