Skip to content

A brain tumor detection model capable of detecting a brain tumor in a MRI scan copy. It is a flask app

License

Notifications You must be signed in to change notification settings

SohamRatnaparkhi/BTD_Web

Repository files navigation

BTD_Web

This is a web app that run in integration with this repo as the model that I have used for detection has its code in it.

  • This is Flask app.
  • Its Docker Image is available as well.

Run the following commands in the terminal to use this app locally.

then run following commands.

STEP 1 - Creating virtual enviroment
To do so:-

  pip install virtualenv
  virtualenv btd
  .\btd\Scripts\activate

STEP 2 - Cloning the project locally

    git clone https://github.com/SohamRatnaparkhi/BTD_Web.git
    cd BTD_Web

STEP 3 - Installing all dependancies

    pip install -r requirements.txt

STEP 4 - Running the flask app!

    flask run

Using its Docker Image

  docker pull sohamkr/brain-tumor-detector
  • After the image is successfully pulled, then enter following command:
docker run -p 8000:5000 sohamkr/brain-tumor-detector

In the web-browser type localhost:8000 to view the app. If some errors occur, feel free to comment in discussions section or raise an issue. Anyways, you can always refer to official Docker Documentation.

NOTE:

  • There are chances that the models (model_1.h5 or model_2.h5) may not get downloaded (pulled) due to some lfs error. In such a case, you will need to download the models from this link
  • There are chances that while running app locally on Windows, the app might give errors (OS ERROR). In such a case, please replace / with \ or vice-versa for the respective error.
  • In any other case, raise an issue.

Screenshots

image image

  • Output screen after submitting the required details: image

---------- THANK YOU -----------

About

A brain tumor detection model capable of detecting a brain tumor in a MRI scan copy. It is a flask app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages