Giter Site home page Giter Site logo

recognition-and-classification's Introduction

Recognition and Classification

A impletment for Bag-of-Words Scene Recognition, including Tiny image method and Bag of SIFT method.

screenshot1 screenshot2

A impletment for CNN based Image Classification.

screenshot3

Usage

Requirement (prerequisite: conda)

Type the following command in your terminal, you should have conda to build the environment.

git clone https://github.com/willychen0146/Recognition-and-Classification.git
cd Recognition-and-Classification
# build the environment
bash build.sh

Dataset preparation

The data should be put like the following structure first

data
├─p1_data
│  ├─test
│  │  ├─Bedroom
│  │  ├─Coast
│  │  ├─Forest
│  │  ├─Highway
│  │  ├─Industrial
│  │  ├─InsideCity
│  │  ├─Kitchen
│  │  ├─LivingRoom
│  │  ├─Mountain
│  │  ├─Office
│  │  ├─OpenCountry
│  │  ├─Store
│  │  ├─Street
│  │  ├─Suburb
│  │  └─TallBuilding
│  └─train
│      ├─Bedroom
│      ├─Coast
│      ├─Forest
│      ├─Highway
│      ├─Industrial
│      ├─InsideCity
│      ├─Kitchen
│      ├─LivingRoom
│      ├─Mountain
│      ├─Office
│      ├─OpenCountry
│      ├─Store
│      ├─Street
│      ├─Suburb
│      └─TallBuilding
└─p2_data
    ├─train
    ├─unlabel
    └─val

Bag-of-Words Scene Recognition

# simply run the script
# you can change feature, classifier, dataset_dir in the script if you want.
p1/p1_run.sh

CNN based Image Classification

# simply run the script
# you can change the hyperparameters setting for training in config.py

# training
# you can change the dataset_dir for training
p2/p2_run_train.sh

# testing (for inference and evaluation)
# you can change the argument for testing in p2_run_test.sh
p2/p2_run_test.sh

recognition-and-classification's People

Contributors

willychen0146 avatar

Watchers

 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.