Giter Site home page Giter Site logo

crypto-code / image-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 528 KB

Retrain a pre-trained Neural Network to recognize Images

License: MIT License

Python 100.00%
image-classifier recognize-images image-classification image-classfication image-classification-algorithms

image-classifier's Introduction

Image-Classifier

Retrain a pre-trained Neural Network to recognize Images

Requirements:

Usage:

Retraining for any Image:

  • Create a folder in desktop, and extract all files to that folder. Create a folder tf_files inside the main folder. Place all images in
tf_files/[any_name]/folders.

The folders must be name of the objects inside. For eg. Folder names Cat will have images of cats

  • Go to main folder and Run the following code in CMD:
 python -m scripts.retrain --image_dir=tf_files/[any_name]/ --how_many_training_steps=1000 --model_dir=tf_file/model/ --input_height=299 --input_width=299

Testing the Classifier:

  • Store the Image to Classify in the main folder

  • In the main folder run the following in CMD:

python -m scripts.label_image --input_height=299 --input_width=299 --image=[file_to_classify].jpg

For more info on training an Image Classifier: https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#0

G00D LUCK

For doubts email me at: [email protected]

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.