Giter Site home page Giter Site logo

arunsehrawat / image_classification_with_cnn_and_qnn Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 417 KB

Jupyter Notebook 97.22% Python 2.78%
classification cnn computer-vision image-classification lenet-5 mnist-classification mnist-classification-logistic mnist-dataset mnist-handwriting-recognition pytorch

image_classification_with_cnn_and_qnn's Introduction

Image classification with CNN and QNN

Image classification is a computer vision task, where a machine learning algorithm has to categorize images into predefined classes. Here, we have taken the "MNIST" and "FashionMNIST" datasets (for more details, see the attached notebooks).

The "MNIST" dataset contains images of handwritten digits from 0 to 9.

The "FashionMNIST" dataset covers ten different clothing categories, including T-shirts/tops, trousers, pullovers, dresses, coats, sandals, shirts, sneakers, bags, and ankle boots. Each image is labeled with the corresponding clothing category, providing the ground truth for training and testing.

pred_CNN


(1) In the attached Jupyter notebook Image_classification_with_CNN, I have presented the Convolutional Neural Networks (CNNs) for the task.

LeNET5

Image (LeNET-5) source: http://vision.stanford.edu/cs598_spring07/papers/Lecun98.pdf


(2) In the notebook Image_classification_with_QNN, I have presented the Quantum Neural Network (QNN) for the task. Here, the QNN consists of quantum layers followed by a classical layer at the end.

QNN


(3) Unlike Image_classification_with_QNN, we are taking only two classes 0 and 1 and taking only quantum layers in the notebook Image_classification_with_QNN_2.

QNN2


I have also uploaded:
(4) quantum circuit simulator (used in QNN)

(5) a notebook with quantum circuit examples to test the quantum circuit simulator


acc_loss_CNN

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.