Giter Club home page Giter Club logo

audio_pytorch's Introduction

AUDIO_PYTORCH

This is a repository built from the youtube playlist: https://www.youtube.com/playlist?list=PL-wATfeyAMNoirN4idjev6aRu8ISZYVWm by Valerio Velardo. This is strictly a learning exercise meant for no intended useful value otherwise.

You can find his code referenced in the notes on the videos.

Note on training and testing

I've made a couple of enhancements to the original code:

  1. I added the notion of fold to the urbansounddataset module. This is taken from the UrbanSoundDataset website. They arrange the data in 10 "folds" which are subsets of the data. They suggest training with one fold as the test set and the other 9 as the training set.
  2. In the inference code, I test all the members of the dataset from a given fold and total up the number that matches against the total.
  3. Based on an issue on the github page, I removed the softmax from the model layers since the CrossEntropyLoss expects the raw logits instead of the predicted values.

Enhancement ideas:

  1. Build an overarching function that invokes training by each fold. Thus, starting with fold 1 (they're numbered 1-10), train on 2-10 and test on 1, then train on 1 and 3-10 and test on 2, and so on.
  2. Try different cnn architectures than the one given.
    1. The given architecture has 4 blocks with input/output channels of (1,16),(16, 32), (32, 64), (64, 128). What if you turned that around? Something like (1, 128), (128, 64), (64, 32), (32, 16).

audio_pytorch's People

Contributors

bwanab avatar

Watchers

 avatar Kostas Georgiou 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.