Uses a Convolutional Neural Network to diagnose COVID-19. The CNN classifies X-Rays to diagnose images as COVID-19, NORMAL, or VIRAL Pneumonia
About the Scripts Directory:
The covid.py
file contains all of code for the Convolutional Neural Network. It has code to preprocess the images, create the layers of the neural network, and make predictions on either single images or sets of images. It also has code for a confusion matrix.
The COVID.ipynb
file is just the Jupyter Notebook version of covid.py
. The Notebook contains important figures.
Instructions on How to Use this WebApp:
- Clone this repo
- Navigate to the webapp directory and create a virual environment using python3. If you do not have virtualenv installed. Do
pip install virtualenv
. Once you have virtualenv, perform the commandpython3 -m venv venv
. This creates a virtual environment. Activate the virtual environment by writingsource venv/bin/activate
Download the necessary libraries including flask, numpy, tensorflow. - Do
FLASK_APP=app.py
- Do
flask run
- The app should then be good to go!