Skip to content

This is a brain tumor classification model created using transfer learning with resnet-50 model to classify the brain tumor MRI images into 17 classes. The model has achieved an accuracy of 97% on test data.

Notifications You must be signed in to change notification settings

anu81785/brain_tumor_detection_using_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain Tumor Detection Using Pytorch Model

This is a brain tumor classification model created using transfer learning with resnet-50 model to classify the brain tumor MRI images into 17 classes. The model has achieved an accuracy of 97% on test data.

Steps to Run the Website

  • Download the github folder to you local server using following command:

  • Change the directory to downloaded folder:

    • cd brain_tumor_classification_into_17_classes
  • Create a virtual environment using python:

    • python -m venv env_name
  • Activate the virtual environment:

    • source /path/to/venv/bin/activate
  • Now download all the required packages inside this virtual environment using following command:

    • pip install -r requirements.txt
  • Start the following commands to apply the migrations and runserver

    • python manage.py migrate

    • python manage.py runserver

    Screenshot from 2023-09-01 17-20-16

  • Open the url http://127.0.0.1:8000 in your browser

    tuxpi com 1693572025

  • Upload the brain MRI image for which you want to detect the tumor type

    tuxpi com 1693572451

Link to Dataset (MRI images of brain) from kaggle

Plots for Loss and Accuracy for Training and Validation Set

plots

Confusion Matrix for Test Data

index

About

This is a brain tumor classification model created using transfer learning with resnet-50 model to classify the brain tumor MRI images into 17 classes. The model has achieved an accuracy of 97% on test data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages