Git Product home page Git Product logo

imageclassification's Introduction

ImageClassification

  1. Download this repository
  2. Add extension to 3D Slicer
  3. Install Docker Community Edition
  1. Install tensorflow (optional)
  1. Build Retrain Container
  • Open command prompt
  • Build container using the following command:
    • docker build -t retrainimage <Path to ImageClassification Directory>/Models/retrainContainer
  1. Collect training photos
  • Open Collect_Training_Photos module in 3D Slicer
  • Start Plus Config file
  • Select existing model or create a new model
  • Select image class or create new classes
  • Keeping the object that you are trying to recognize in the image frame click Start Image Collection
    • For best results introduce as much variety in orientation and background conditions as possible
  • Click Stop Image Collection
  1. Retrain the network
  • Click Retrain
  • This may take up to 20min
  • To visualize training:
    • Open command prompt
    • Execute the following command:
      • tensorboard --logdir <Path to retrainContainer>/<Model_Name>/trained_model/retrain_logs
    • Navigate in browser to <host_name>:6006
  1. Copy trained_model folder from retrainContainer directory to classifierContainer directory
  2. Build Classifier Container
  • Open command prompt
  • Build container using the following command:
    • docker build -t classifierimage <Path to ImageClassification Directory>/Models/classifierContainer
  1. Run Classifier
  • Open CNN_Image_Classifier module in 3D Slicer
  • Select model
  • Click Start
  1. Making changes to classifier container
  • image must be rebuilt when files in classifierContainer folder are changed
  • execute the following commands in a command prompt window
    • docker container rm classifierContainer
    • docker image ls
    • docker image rm <ID of classifierimage>
  • Repeat step 9 to rebuild

imageclassification's People

Contributors

hennyjie avatar rebeccahisey avatar

Stargazers

 avatar

Watchers

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