Coder Social home page Coder Social logo

image_classification's Introduction

Requirements

  • Python>=3.7.0
  • tensorflow==2.8.0
  • pip install -r requirements.txt

Dataset

The dataset is available on download here

Train

python train.py --path path/to/dataset --epochs 12 --model_dir path/for/model

Parameters:

  • path: path to dataset
  • epochs: number of epochs
  • model_dir: path where weights will be saved

Test

python test.py --path path/to/dataset --model path/for/trained/model
The result on test data will be printed.

Parameters:

  • path: path to dataset
  • model: path to model

Inference

python inference.py --image path/to/image --model path/for/trained/model
The result of inference will be printed.

Parameters:

  • image: path, image from dataset
  • model: path to model

2D images projections

python image_projection.py --path path/to/data --model path/for/trained/model
The resulted image will be shown on a new window.

Parameters:

  • path: path to test data, or data which will be projected
  • model: path to model

Flask

cd flask
python run.py --path path/for/trained/model

Parameters:

  • path: a required path to weights

Results

Refer to youtube.

Test

Name Test accuracy Model
ResNet50 0.9821 model

Images projections

Canvas

image_classification's People

Contributors

slava-git avatar

Stargazers

 avatar LoveNui avatar

Watchers

Secret Star 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.