All Projects → Tofull → image-classifier-service

Tofull / image-classifier-service

Licence: other
Sorting my messed folder where I put my holidays pictures was not fun. My computer made the trick for me with Deep Learning!

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to image-classifier-service

Nlp
This is where I put all my work in Natural Language Processing
Stars: ✭ 90 (+190.32%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Math object detection
An image recognition/object detection model that detects handwritten digits and simple math operators. The output of the predicted objects (numbers & math operators) is then evaluated and solved.
Stars: ✭ 52 (+67.74%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Tensorlayer Tricks
How to use TensorLayer
Stars: ✭ 357 (+1051.61%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Dog-or-Cat-TensorflowSharp-Example
An example for TensorflowSharp - classify an image as a dog or cat.
Stars: ✭ 15 (-51.61%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Ml Classifier Ui
A UI tool for quickly training image classifiers in the browser
Stars: ✭ 224 (+622.58%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Ml Classifier
A tool for quickly training image classifiers in the browser
Stars: ✭ 97 (+212.9%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Tensorflow Sentiment Analysis On Amazon Reviews Data
Implementing different RNN models (LSTM,GRU) & Convolution models (Conv1D, Conv2D) on a subset of Amazon Reviews data with TensorFlow on Python 3. A sentiment analysis project.
Stars: ✭ 34 (+9.68%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Learn Machine Learning In Two Months
Những kiến thức cần thiết để học tốt Machine Learning trong vòng 2 tháng. Essential Knowledge for learning Machine Learning in two months.
Stars: ✭ 1,726 (+5467.74%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
TensorFlow-Multiclass-Image-Classification-using-CNN-s
Balanced Multiclass Image Classification with TensorFlow on Python.
Stars: ✭ 57 (+83.87%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Tensorflow-Wide-Deep-Local-Prediction
This project demonstrates how to run and save predictions locally using exported tensorflow estimator model
Stars: ✭ 28 (-9.68%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
nmap vscan
nmap service and application version detection (without nmap installation)
Stars: ✭ 105 (+238.71%)
Mutual labels:  recognition
DLCV2018SPRING
Deep Learning for Computer Vision (CommE 5052) in NTU
Stars: ✭ 38 (+22.58%)
Mutual labels:  recognition
nested-sort
Nested Sort is a JavaScript library which helps you to sort a nested list of items via drag and drop.
Stars: ✭ 31 (+0%)
Mutual labels:  sort
sort-js-object-keys
This is a VS code extension to alphabetically sort the keys in selected js objects keys in your code.
Stars: ✭ 21 (-32.26%)
Mutual labels:  sort
tensorflow-practice
Tutorials of Tensorflow for beginners with popular data sets and projects. Let's have fun to learn Machine Learning with Tensorflow.
Stars: ✭ 93 (+200%)
Mutual labels:  tensorflow-tutorials
qa
TensorFlow Models for the Stanford Question Answering Dataset
Stars: ✭ 72 (+132.26%)
Mutual labels:  tensorflow-tutorials
finFindR
An application for dorsal fin image recognition and cataloguing
Stars: ✭ 16 (-48.39%)
Mutual labels:  recognition
RecPlate-lib
基于BP神经网络的车牌识别系统
Stars: ✭ 41 (+32.26%)
Mutual labels:  recognition
keras cv attention models
Keras/Tensorflow attention models including beit,botnet,CMT,CoaT,CoAtNet,convnext,cotnet,davit,efficientdet,efficientnet,fbnet,gmlp,halonet,lcnet,levit,mlp-mixer,mobilevit,nfnets,regnet,resmlp,resnest,resnext,resnetd,swin,tinynet,uniformer,volo,wavemlp,yolor,yolox
Stars: ✭ 159 (+412.9%)
Mutual labels:  recognition
Spatial-Transformer-Nets
Spatial Transformer Nets in TensorFlow/ TensorLayer
Stars: ✭ 38 (+22.58%)
Mutual labels:  tensorflow-tutorials

Image classification as a service

I have a folder where I put all my cambridge holidays pictures... I would love to sort by topics my pictures of my holidays in Cambridge.

messed_path

In fact, these pictures are a groundtruth for computer vision algorithms from University of Washington

Here is the expected result of the classification :

messed_path

Oh dear god ! My computer analysed my pictures and recognized on its own all the churches of my cambridge holidays pictures and put them in the same folder :

messed_path

Example

With this command line, I am now able to sort my pictures by topics as above

python3.5 messed_path_to_classify.py --out_path ./example/sorted ./example/cambridge

Installation

The installation procedure has been tested on Ubuntu 16.04.

Dependancies

This code needs python3 and TensorFlow to work.

  • Install python3 :
sudo apt-get install python3
  • Install TensorFlow :

    You need to first install pip3 plugin for managing the modules.

sudo apt-get install python3-pip python3-dev

Then, install Tensorflow :

sudo pip3 install --upgrade <link>

Choose your link on tensorflow documentation.

Because of some difficulties to install TensorFlow with cuda and cudnn libraries, I used :
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp35-cp35m-linux_x86_64.whl

Get the code

Once you have fill the requirements, you need to clone the repository :

git clone https://github.com/Tofull/image-classifier-service
cd image-classifier-service

Create an alias

The goal of creating an alias is to not care about the location of the repository but used it anywhere.

chmod +x ./alias.sh
./alias.sh

You could now use classify_path to call the script. Easier and faster.

Now have fun and classify your folder !


Usage :

  • Mainly use :

     classify_path --out_path ./sorted ./path_to_classify/
    

    where :

    • ./sorted is the destination path
    • ./path_to_classify/ is the path where images are located
  • Help :

     classify_path -h
    

How does it work ?

Schema

  • Label image with deep learning
  • Create folder corresponding to the Label
  • Copy the image into the right path

TODO :

  • Check if the code is working on Ubuntu 16
  • Update installation part of the documentation
  • Upgrade the code with the new tensorflow API : Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization()
  • Try with GPU tensorflow
  • Add png format use case (png decoder)
  • Parallelize image recognition (check with openMP ?)
  • Build a dockerfile to transform the script as a service
  • Learn how to generate the model with my own data
  • Create a responsive interface website (hosting the service) for no-computer-friendly people who want to sort their holiday pictures
  • Keep playing with Tensorflow
  • Star the github repository
  • Talk about this service to attract developers to contribute
  • Revise this todo list

Contributions

messed_path_to_classify.py has been created by Loic MESSAL (Student at the French National School of Geomatics).
24 March 2016

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].