Detecting COVID-19 in X-ray images with deeplearning using keras and tensorflow, Image classification.
This notebook was ran on google collab. As My gtx1050ti was unable to handle it.
Tensorflow 2.xx
Keras
h5py
- The dataset:
- 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.
- For healthy X-ray, we shall use Kaggle’s Chest X-Ray Images (Pneumonia) dataset and sampled X-ray images from healthy patients.
- 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.
- Pre-processing
- Extract the class label (either covid or normal) from the path
- Load the image, and pre-process it by converting to RGB channel ordering.
- Resizing the images to 224×224 pixels so that it is ready for our Convolutional Neural Network.
- Model
- We used VGG16 model, along with our own model.
- Transfer learning, we initialized our model's top 2 convolutional layer's bais and weights of that of VGG16
- RESULT
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.
. Download
contact me at [email protected]