Giter VIP home page Giter VIP logo

jbmclassification2's Introduction

Classifying Healthy and Defective parts

Guide to use Project

Copy the contents of JBMData (Drive Link) attached with mail inside ./JBMClassification2/

Training Classifier

The folder './JBMClassification2' contains subfolder YE358311_Healthy & YE358311_defects which has dataset

  1. Open playingwithmodel.py
  2. Cd to JBMClassification2
  3. Make sure to modify the path to your local dir in Line No. 43
  4. Now the Classifier can be trained by executing the below command. 4.1. python playingwithmodels.py
  5. Saved network at the end or training is generated with file name JBM_Classification

Testing the model

Already trained model present in ./JBMClassification2/ (with name JBM_Classification.h5 )directory can be used for testing on new images. Execute the below command.

  1. Open test_model.py
  2. Cd to JBMClassification2
  3. Modify the path for trained_model_path (./JBMClassification2/JBM_Classification.h5), incept_model_path(./JBMClassification2/incept_model.h5 ) Line No. 31 & 32
  4. Make a Test folder inside the JBMClassification2 and keep test images(Healthy/Defective) inside this folder with image name being test.img Line No. 33 in test_model.py

OR

python ./test_model.py \
--images_path={Path of the Image file or Folder of images} \
--trained_model_path = ./ JBM_Classification.h5\
--incept_model_path = ./incept_model.h5

The trained model achieved ~93.55 % accuracy with following parameters :-

  • Epochs = 150
  • Batch size = 32
  • Learning Rate = 1e-5 (RMSprop)

Deploying App to Smartphone and on Cloud

In ./JBMClassification2/ we have following video demo.

  1. QualityTesterByJBM A Demo of AI model deployed on the android App
  2. GuidetoTestNetwork Guide on how to use test_model.py to predict from saved network.
  3. TraningRecord Screen Capture while traning, Accuracy reaches to 93.55% towards epoch 150

jbmclassification2's People

Contributors

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