Coder Social home page Coder Social logo

rohanpillai20 / image-classification-by-keras-and-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
83.0 4.0 60.0 42 KB

Image Classification using Keras as well as Tensorflow.

License: Apache License 2.0

Python 100.00%
python tensorflow keras cnn-classification image-classifier machine-learning hacktoberfest

image-classification-by-keras-and-tensorflow's Introduction

Image-Classification-by-Keras-and-Tensorflow

Image Classification using Keras as well as Tensorflow. Image Classification is a Machine Learning module that trains itself from an existing dataset of multiclass images and develops a model for future prediction of similar images not encountered during training. Developed using Convolutional Neural Network (CNN).

This repository contains implementation for multiclass image classification using Keras as well as Tensorflow. These two codes have no interdependecy on each other.

Convolutional Neural Network (CNN)

To be updated soon.

Modules Required

You can download the modules in the respective requirements.txt for each implementation.

Implementation using Keras

sys
os
time
keras==2.2.0
numpy==1.14.5

Implementation using Tensorflow

os
time
cv2
glob
dataset==1.1.0
tensorflow==1.15.0
numpy==1.14.5
sklearn==0.19.1

Steps

  1. Install the modules required based on the type of implementation.
  2. Download the dataset you want to train and predict your system with. For sample data, you can download the 101_ObjectCategories (131Mbytes).
  3. Construct the folder sub-structure required.

Keras

Keras.png

Tensorflow

Tensorflow.png

image-classification-by-keras-and-tensorflow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

image-classification-by-keras-and-tensorflow's Issues

Learning Transfer

Hello,

How to do if I want to add classes to an existing training?

Thanks,

2 Errors

Error 1:
WARNING:tensorflow:From :41: calling argmax (from tensorflow.python.ops.math_ops) with dimension is deprecated and will be removed in a future version.
Instructions for updating:
Use the axis argument instead

Error 2:
saver.save(session, 'C:\

Does not save anything, so when calling Prediction.py it says:
Exception: File models/trained_model.meta does not exist.

Error 3:
Warning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

Prediction

if answer == 1:
print("Predicted: chair")
elif answer == 0:
print("Predicted: Motorbikes")
elif answer == 2:
print("Predicted: soccer_ball")

How can you mention (if 1 it is chair, if 2 its ball?). How do you categorize it?

Fine tuning

Can you help me to fine tuning this to get better result because i try to use grayscale images

Image Labels

why keras code doesn't have labels for images ?
how the model this is chair or somthing else without labeling , i mean in traning set ?

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.