GithubHelp home page GithubHelp logo

bhanukamanesha / embarrassingly-simple-classifier-comparison Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 316 KB

Codebase for the paper "An embarrassingly simple comparison of machine learning algorithms for indoor scene classification"

Python 100.00%
computer-vision mnasnet resnext-101

embarrassingly-simple-classifier-comparison's Introduction

An embarrassingly simple comparison of machine learning algorithms for indoor scene classification

This is a python implementation of an indoor scene classifier comparison with experimentation results.

Method

Architecture

Usage

Prerequisite

Install the dependencies using the requirements.txt file.

Setting up the code

There are two ways of setting up the code.

  1. Extracting features from the dataset to train and test the classifiers.
  2. Using the extracted features to train and test the classifiers.

Extracting the features from the dataset

Let ROOT be the directory where all data/code/results will be placed.

  1. Download the indoor scene classification dataset using this link and place all class folders in ${ROOT}/Images/airport_inside etc.

  2. Download the train labels using this link and test labels using this link and place them in ${ROOT}/Dataset/TrainImages.txt and ${ROOT}/Dataset/TestImages.txt.

  3. Execute the feature extraction script using python feature_extractor.py. This will create the mnasnet1_0-features.h5 and resnext101-features.h5 in your ${ROOT}/Dataset/ folder.

Using the extracted features

Let ROOT be the directory where all data/code/results will be placed.

  1. Download the extracted features using this link and place them in ${ROOT}/Dataset/mnasnet1_0-features.h5 and ${ROOT}/Dataset/resnext101-features.h5.

  2. Download the train labels using this link and test labels using this link and place them in ${ROOT}/Dataset/TrainImages.txt and ${ROOT}/Dataset/TestImages.txt.

Running the scripts

Training and Generating the results

Execute python train_all.py. Note: This may take more than 48 hours based on the specs of the PC.

Extracting the results from the logs

Execute python extract_results.py > results/results.txt.

This will create a csv file in ${ROOT}/results/results.csv and a text file ${ROOT}/results/results.txt with a LaTeX table with selected columns.

You can modify this by updating the columns in this line.

Plotting

Execute python plot.py.

This will generate all the plots in the ${ROOT}/plots/ folder.

Results

All the experiment results can be downloaded using this link.

embarrassingly-simple-classifier-comparison's People

Contributors

bhanukamanesha avatar

Watchers

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