Git Product home page Git Product logo

divyam6969 / pneumonia-detection-using-fastai Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 2.35 MB

This project uses a pre-trained ResNet50 model from the FastAI library to detect pneumonia in chest X-rays. The dataset which is available on kaggle is used for training the model which classifies the chest xray as NORMAL, VIRAL or BACTERIAL and this project is deployed on Flask

License: MIT License

Jupyter Notebook 99.37% Python 0.21% HTML 0.42%
cnn fastai artificial-intelligence biomedical cnn-model kaggle pneumonia-classification pneumonia-detection resnet50 resnet50-model ai-projects ai-ml-beginner-projects machine-learning ml-projects flask

pneumonia-detection-using-fastai's Introduction

Pneumonia Detection using FastAI ResNet50 Model and deployed using Flask

This project uses a pre-trained ResNet50 model from the FastAI library to detect pneumonia in chest X-rays. The dataset which is available on kaggle is used for training the model which classifies the chest xray as NORMAL, VIRAL PNEUMONIAL or BACTERIAL PNEUMONIAL. And this model is deployed using flask.

First, train the model to generate the export.pkl file. Once the training process is complete, you can use this generated export.pkl file in your Flask application.

Before uploading image

Uploading the image

After uploading the image

Getting Started

To use this project, follow these steps:

  1. Clone the repository: git clone https://github.com/Divyam6969/Pneumonia-Detection-using-FastAI
  2. Install the necessary dependencies: pip install fastbook
  3. Download the Chest X-ray dataset from Kaggle and extract it to the appropriate directory.
    Open the pneumonia-detection.ipynb notebook and follow the instructions to train and evaluate the model.

Note: You will need to have FastAI installed to run this project.

Features

Uses a pre-trained ResNet50 model for Pneumonia detection. Demonstrates how to fine-tune a pre-trained model using FastAI. Achieves high accuracy in detecting pneumonia in chest X-rays. Includes visualizations of the training process, confusion matrix, and sample predictions.

Contribution

Contributions and feedback are welcome. Please open an issue or a pull request if you have any suggestions or improvements.

Resources

Link to another project I made which classifies chest-xray as pneumonic or normal: https://www.kaggle.com/code/divyam6969/chest-xray-classifier

Link to my previous project: https://github.com/Divyam6969/Pneumonia-Detection-AI (this model is overfitting :/)

Chest X-ray dataset on Kaggle: https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia

FastAI library: https://www.fast.ai/

Kaggle API: https://github.com/Kaggle/kaggle-api

License

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

pneumonia-detection-using-fastai's People

Contributors

divyam6969 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

atoaplus

pneumonia-detection-using-fastai's Issues

Problem

In app.py you have used skin prediction correct it please

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.