Giter VIP home page Giter VIP logo

gcommandspytorch's Introduction

ConvNets for Speech Commands Recognition

Training ConvNet models using Google Commands Dataset, implemented in PyTorch.

Features

  • Training and testing ConvNets.
  • Arrange Google Commands Dataset, in an Train, Test, Valid folders for easy loading.
  • Dataset loader.

Installation

Several libraries are needed to be installed in order to extract spectrograms and train the models.

Usage

Google Commands Dataset

Download and extract the Google Commands Dataset.

To make the arrange the data run the following command:

python make_dataset.py <google-command-folder> --out_path <path to save the data the new format>

Custom Dataset

You can also use the data loader and training scripts for your own custom dataset. In order to do so the dataset should be arrange in the following way:

root/up/kazabobo.wav
root/up/asdkojv.wav
root/up/lasdsa.wav
root/right/blabla.wav
root/right/nsdf3.wav
root/right/asd932.wav

Training

Use python run.py --help for more parameters and options.

python run.py --train_path <train_data_path> --valid_path <valid_data_path> --test_path <test_data_path>

Results

Accuracy results for the train, validation and test sets using two ConvNet models (LeNet5 and VGG11).

In order to reproduce the below results just exec the run.py file with default parameters. Results may be improved using deeper models (VGG13, VGG19), or better hyper-parameters optimization.

Model Train acc. Valid acc. Test acc.
LeNet5 99% (50742/51088) 90% (6093/6798) 89% (6096/6835)
VGG11 97% (49793/51088) 94% (6361/6798) 94% (6432/6835)

gcommandspytorch's People

Contributors

adiyoss avatar viehzeug avatar

Watchers

James Cloos avatar

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.