Giter VIP home page Giter VIP logo

esc-two-stream's Introduction

COMSM0018 Applied Deep Learning - Student Project 2019/2020

University of Bristol, Dept. of Computer Science

This is a reimplementation of the paper: "Yu Su, Ke Zhang, Jingyu Wang, Kurosh Madani, Environment Sound Classification Using a Two-Stream CNN Based on Decision-Level Fusion, Sensors 2019" link

For two stream fusion we simply average the predictions of LMC and MC networks.

The hyperparameters that we used for training are:

  • learning rate: 0.001
  • batch size: 32
  • dropout: 0.5
  • weight decay: 0.0005
  • optimiser: Adam

Training

To train the LMC model, run:

python train.py LMC --train_pickle path/to/UrbanSound8K_train.pkl --test_pickle path/to/UrbanSound8K_test.pkl 

To train MC annd MLMC models, simply replace the first argument in the line above with MC and MLMC respectively.

Testing

To test the LMC model, run:

python test.py LMC --weights_dir models/mode\=LMC/date/ --scores_output scores/LMC.pkl --test_pickle path/to/UrbanSound8K_test.pkl --mapping class_mapping.pkl --average

To test MC annd MLMC models, simply replace every instance of LMC in the line above with MC and MLMC respectively.

To test the 2 stream fusion model (assuming that you have already trained and tested LMC and MC), run:

python test.py LMC+MC --scores_input scores/LMC.pkl scores/MC.pkl --scores_output scores/LMC_MC_fusion.pkl --mapping class_mapping.pkl --average

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.