ubuti's picture
Upload folder using huggingface_hub (part 2)
b9b6e91 verified
|
Raw
History Blame Contribute Delete
1.46 kB

A newer version of the Gradio SDK is available: 6.25.0

Upgrade
metadata
title: MRI_tumor_classification
app_file: app.py
sdk: gradio
sdk_version: 6.14.0

Mr.9xKlug

MRI Tumor Classification Model

This project uses a ResNet18 model to classify MRI images into four categories: No Tumor, Glioma, Meningioma, and Pituitary.

Live Demo

Try out the model with our interactive demo:

Gradio

How to Use

  1. Click on the Live Demo above.
  2. Upload an MRI image or use one of the provided examples.
  3. The model will classify the image and provide probabilities for each tumor type.

Local Installation

If you want to run the model locally:

  1. Clone this repository
  2. Install dependencies: conda env create -f environment.yml.
  3. Run the Gradio interface: python3 -u app.py

Model Details

  • Architecture: torchvision.models.resnet18 was used and initialised with the weights and configuration of BehradG.
  • Training Data: Two datasets available on kaggle where merged 1, 2.
  • Performance: Model exceeds $97%$ accuracy.

Contact

Other authors contribution in form of dataset contribution and model pretraining is very much appreciated!