Giter Club home page Giter Club logo

covid19_xray_detection's Introduction

Detecting COVID-19 in X-ray images with Keras & TensorFlow

Detecting COVID-19 in X-ray images with deeplearning using keras and tensorflow, Image classification.

NOTE

This notebook was ran on google collab. As My gtx1050ti was unable to handle it.

Prerequisites

Tensorflow 2.xx
Keras
h5py

Details

  1. The dataset:
    1. The COVID-19 X-ray image dataset we’ll be using for this solution was curated by Dr. Joseph Cohen, a postdoctoral fellow at the University of Montreal.
    2. For healthy X-ray, we shall use Kaggle’s Chest X-Ray Images (Pneumonia) dataset and sampled X-ray images from healthy patients.
  2. Pre-processing
    1. Extract the class label (either covid or normal) from the path
    2. Load the image, and pre-process it by converting to RGB channel ordering.
    3. Resizing the images to 224×224 pixels so that it is ready for our Convolutional Neural Network.
  3. Model
    1. We used VGG16 model, along with our own model.
    2. Transfer learning, we initialized our model's top 2 convolutional layer's bais and weights of that of VGG16
  4. RESULT
    1. On paper we got 98 % training and val accuracies BOTH,
      Which is hard to believe as we only had 115 images of covid 19 positive patients.
    2. Test and training accuracies and losses
      This was the results loss and accuracies

Using

Just USE the notebook I don't not recommend using the .py file .
I don't know what happens when you run the .py file.
Structure of folders is as uploaded

python covid19.py #ALTHOUGH I DON'T RECOMMEND BECUASE IT IS CONVERTED FROM .ipynb

You should get a trained model and a results plot at the end of the script.

If you need my trained model

. Download
contact me at [email protected]

covid19_xray_detection's People

Contributors

mdalmas avatar

Stargazers

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

Watchers

 avatar  avatar

covid19_xray_detection's Issues

running problem

When I tried it out in colab, val_acc did not break through 0.2267

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.