Skip to content

Repository files navigation

COVID, Pneumonia, Normal Classification

This repository contains a Streamlit application that classifies lung images into three categories: COVID, Pneumonia, and Normal, using a pre-trained InceptionV3 model.

Description

The application uses a Convolutional Neural Network (CNN) based on the InceptionV3 architecture to classify lung X-ray images. It allows users to upload images and receive predictions along with confidence scores.

Features

  • Upload images in JPG, JPEG, or PNG formats. You can also upload multiple image using zip
  • Get the PDF Report for each image along with the classification result and confidence level.
  • Displays the uploaded image along with the classification result and confidence level.

Streamlit link

https://covid-pneumonia-detector.streamlit.app/

Installation

  1. Clone this repository:
    git clone https://github.com/Roberttwil/covid-pneumonia-detector.git
    
  2. Install the required packages:
    pip install -r requirements.txt
    
  3. Run on Streamlit:
    streamlit run app.py
    

Model Training

The model is trained using the dataset of lung X-ray images. The training code is available in model_code.ipynb. This notebook contains the following steps:

  1. Data preprocessing and augmentation.
  2. Model architecture setup.
  3. Training the model with early stopping and checkpointing.
  4. To train the model, run the cells in the model_code.ipynb notebook, and the best model will be saved as inceptionv3_best_model.keras.

Dataset Link

https://www.kaggle.com/datasets/sachinkumar413/covid-pneumonia-normal-chest-xray-images

Documentations

Normal Covid Pneumonia

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages