Code Monkey home page Code Monkey logo

auto-triage's Introduction

auto-triage

Introduction

This project is a reproduction of the SIGGRAPH 2016 paper Automatic Triage for a Photo Series written in Python with the help of Keras and TensorFlow.

Structure

data/                # benchmark dataset (Princeton Adobe photo triage dataset)
| demos/             # three demo scenarios (jpeg files)
| download.sh        # data downloading and preparation
src/                 # source code
| data.py            # data loading and preprocessing
| models.py          # models with different settings
| train.py           # script for training
| evaluate.py        # script for evaluation
| predict.py         # script for prediction

Usages

Requirements

  • Python 2.7
  • OpenCV 2
  • Keras 2.0+
  • TensorFlow 1.0+

Preparations

cd data/ && sh ./download.sh

Training

cd src/ && python train.py <options>

Options

--exp                experiment identifier (default: default)
--gpu                GPU used for training (default: 0)
--epochs             number of training epochs (default: 16)
--batch              mini-batch size (default: 4)
--model              model (default: vgg16)                          (vgg16 | vgg19 | resnet50)
--siamese            weight sharing (default: share)                 (share | separate)
--weights            transfer learning (default: imagenet)           (imagenet | random)
--module             feature interaction (default: subtract)         (subtract | bilinear | neural)
--activation         activation function (default: tanh)             (tanh | relu)
--regularizer        regularizatiation function (default: l2)        (l2 | none)

Evaluation

cd src/ && python evaluate.py <options>

Options

--exp                experiment identifier (default: default)
--gpu                GPU used for evaluation (default: 0)

Prediction

cd src/ && python predict.py <options> <image-list>

Options

--exp                experiment identifier (default: default)
--gpu                GPU used for prediction (default: 0)

Examples

In order to produce the prediction for demo scenario 1, you may use the following command:

cd src/ && python predict.py ../data/demos/scenario-1/scenario-1-a.jpg ../data/demos/scenario-1/scenario-1-b.jpg

Also, you may use the following command for short:

cd src/ && python predict.py ../data/demos/scenario-1

License

This project is released under the open-source MIT license.

auto-triage's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auto-triage's Issues

Data link

Thank you for your great job! I want to download the datasets but I encounter an issue while trying to download the dataset from the provided link in download.sh. Unfortunately, the link appears to be broken or the file is no longer available. Could you please check this issue? If the dataset has been moved to a new location, could you kindly update the link or provide the new one?

about Dropout layer

It was mentioned in the paper that dropout was removed.But I found a dropout node in your network structure

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.