Git Product home page Git Product logo

torch-voc-with-gui's Introduction

VOC Object Classification using PyTorch

Getting Started

$ git clone https://github.com/junqingchang/torch-voc-with-gui
$ cd torch-voc-with-gui/dataset

Try to run

$ ./get_dataset.sh

If you get permission denied, run

$ chmod +x get_dataset_sh
$ ./get_dataset.sh

Next,

$ cd ..
$ pip install -r requirements.txt

Model Training

There are 2 different models here, both are train via transfer learning from resnet18. Difficult images are ignored

Model 1 consist of Color Jitters to augment the image. Training is done by ColorMeOver5Times.py

Model 2 consist of an additional Average Pooling layer at the end of resnet18 and jitter augmentations. Training is done by ColorFlipEditedRes.py

Both files consist of hyperparameters that can be edited.

Do take note to create your output directory before starting to train

Upon training, the other python files will be useful for displaying information

dataviewer.py and accuracy.py will display loss over time and tail accuracies

get_outputs.py generates true and predicted values from a validation/test set

precomputed.py generates precomputed values for the GUI (i.e. Image rankings)

GUI

Unloaded GUI Loaded GUI with prediction

Run

$ python vocapp.py

The GUI provides the capabilities of predicting a new image, as well as seeing a list of precomputed images. If a class is chosen, the list will be arranged in decending order of scores for that class. Users are able to edit the threshold hyperparameter to see at different threshold what the predictions are.

torch-voc-with-gui's People

Contributors

junqingchang avatar

Watchers

James Cloos 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.