Learn TensorFlow Image Classification & How to Install TensorFlow


What Is TensorFlow?

TensorFlow is an open source deep learning library that is used for numerical computation using data flow graphs. The nodes in the chart represent mathematical operations, while the graphic edges represent multidimensional data sets (tensors) that are transmitted between them. Flexible architecture allows you to deploy computing to one or more CPUs or GPUs on a desktop, server, or mobile device with a single API. TensorFlow was initially developed by Google’s Google brain team to conduct machine learning and deep neural networks research. Alternatives Caffe, Torch, Kerras, theano, deeplearning4j etc.

What Is A TensorFlow Classifier?

The classification corresponds to the meaning of the word as one. The various characteristics of living things in nature;external appearance, organ structure, kinship, anatomical similarity, etc. according to the classification. That’s what we’re talking about as a classification. For example, countries on earth have their own characteristics, namely when you see the flag of a country, when you hear the national anthem, you can distinguish it from all other countries and say its name. That’s how classifiers work in Computer Science. A data set is a set of data that you have in your hand, and the data in that set creates different sets, and then when an element other than that data set arrives, you look at the properties of it and place it in the corresponding set. We’re developing a software, and if we want this software to know what an animal we’re showing, one of the methods we’re going to apply is categorizer. We will be able to determine which element of the cluster can be when a new element comes in thanks to the pictures of the previously found clustered animals.

TensorFlow Installation

Python 3.5 for development with TensorFlow.it needs to be X or higher. The following is an example: We said that these libraries can work on the GPU, if you have an NVIDIA GPU, you can install the GPU version. Those who want to deal with some opensource parallelism facilities that run on AMD GPU can download and compile source code. You can install tensorflow directly on Linux, MacOS and Windows. In GitHub repo you can also browse to it if you want to make mobile development available in a sample project for Android.

CPU Version

GPU Version

For more information, see the document here.


A more useful way to develop with TensorFlow is to use Docker. The TensorFlow team has created a docker image so you can test everything on the virtual machine with ease. If you are wondering what docker is, you can take a look at this 10 minute video and add it as a note that docker works on the Windows platform (Windows 10 Pro x64).

(You can skip these steps if you are not going to work on the docker.)

If you have installed the docker, let’s start by installing the image for the tensor flow. First, Open Windows PowerShell and;

after the image download is complete, let’s start with the following docker command;

After this step, the image will be up.

The next steps will explain the training and use of the classifier.

Preparation Of Data Set

You can download a set of sample data that is frequently used in tests. In this data set there are flower pictures in various categories (chamomile, rose etc.).(see).


You can use curl to download this data set on the docker. and put the data set we downloaded into the same directory.

Everything necessary for training is available in Tensorflow example (tensorflow/examples/image_rering), to get the final version of git repos

we export the data set directory as image dir, specify the directory where you want the models and labels to be created.

At the end of the training process, the model will be ready for use.

tensorflow model
tensorflow model

How To Use The TensorFlow Model

output_graph.Pb model file tf_files/output_labels.TXT is the tags that contain model definitions, i.e. categories.

You can also find this code under the train directory between the TensorFlow examples.

Use in;

As a result you will return the score list.


  • Design

Leave A Reply

Your email address will not be published.