Giter Site home page Giter Site logo

bs3537 / diabetic-retinopathy-with-cnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lightsalsa251/diabetic-retinopathy-with-cnn

0.0 1.0 0.0 19.51 MB

Home Page: https://medium.com/@s.ganjoo96/diabetic-retinopathy-detection-with-resnet50-b621514bd22b

Jupyter Notebook 88.81% Python 3.46% CSS 1.65% JavaScript 2.67% HTML 3.41%

diabetic-retinopathy-with-cnn's Introduction

Diabetic Retinopathy with CNN

Detect the stage of diabetes in human retina. The 150 GB image data is from Kaggle's Diabetic Retinopathy Detection Repository. Run the flask app in Deployed Model folder to see the model in action. Sample images have been stored in the Deployed Model folder for testing.
ResNet architecture has been used for training
Residual Learning
Convolutional Neural Networks aka ConvNet is a class of deep learning, most commonly applied to image datasets.
There are multiple types of commonly used layers in ConvNets

  • Convolution layer - This layer applies the convolution operation on an image with a defined stride and padding
  • Pooling layer - This layer is used for reducing the dimensionality of feature maps by defining a mask and an operation to be performed, then moving the mask on the whole image according to the stride defined. No weights are learnt in this layer
  • Fully Connected layer - Traditional neural layers, used at the end stem of the neural network. Used rarely these days due to the staggering amount of parameters it uses
  • Dropout layer - Used for reducing over-fitting. It randomly turns off some neurons at each pass during the training
  • Batch Normalisation - Normalises the output values thus reducing computation time. Also introduces regularisation effect
    Conv Operation

I have written an article on detecting diabetic retinopathy here

Installation

Download the data and clone this repository

  • Clone this repository to your computer.
  • Get into the folder using cd Diabetic-Retinopathy-Detection-with-CNN.
  • Download the data files from Kaggle into this directory.

Installing the requirements

  • pip install requirements.txt

Usage

  • Run each cell in the Model_script.ipynb file.
  • Save your model in the sub folder of Deployed Model folder.
  • Run the app.py file.
  • Let the server load, open a web browser and type localhost:5000

You are ready to go

Result

Trained this model on cloud for only 2 epochs because of very little financial resources, the model achieves 73% accuracy.

diabetic-retinopathy-with-cnn's People

Contributors

lightsalsa251 avatar

Watchers

James Cloos avatar

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.