Coder Social home page Coder Social logo

audiotagging's Introduction

AudioTagging

Working on: https://www.kaggle.com/c/freesound-audio-tagging-2019

Running

  1. Run 00_Preprocess.ipynb (Takes ~2.5 hours ๐Ÿ˜ข)

    • Converts audio files into images and saves them
    • Turns string labels into binary indicators
    • Perform label smoothing on the noisy dataset
    • Merge the train_curated.csv and train_noisy.csv into train_merged.csv
  2. Run 01_BasicModel.ipynb

    • Generates a single (balanced) validation fold based on the curated training set
    • Defines a few simple image transforms
    • Creates an ImageDataBunch with batch image normalization .normalize()
    • Creates a vgg16_bn learner that uses mixup data augmentation
  3. Run src/trainAll.py

    • Performs a full training cycle with my best known hyperparameters and network
    • Creates a /kfolds folder with validation set predictions
    • Creates a /model_predictions folder with test set predictions
    • Creates a /model_source folder with the exact source used to generate a given score

Optional

  • 00_EDA.ipynb is Exploratory Data Analysis

    • Visualize class balance
    • Visualize audio length
    • Find incorrect audio file 77b925c2.wav
    • Example on how to create a validation set that is
      • Only taken from curated dataset
      • Is balanced according to labels (using MultilabelStratifiedKFold)
  • 01_ExploringActivations.ipynb

    • Looking at the activations of the network to make sure nothing seems problematic
  • 03_ImageStats.ipynb

    • My attempt to compute image statistics for normalization (similar to imagenet_stats or mnist_stats)
    • Unfortunately using the statistics from this doesn't improve performance
      • I have probably made a mistake and am misunderstanding how the statistics should be calculated.

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.