https://github.com/sohamratnaparkhi/btd_web
A brain tumor detection model capable of detecting a brain tumor in a MRI scan copy. It is a flask app
https://github.com/sohamratnaparkhi/btd_web
brain-tumor-detection cnn deep-learning docker flask neural-networks
Last synced: 20 days ago
JSON representation
A brain tumor detection model capable of detecting a brain tumor in a MRI scan copy. It is a flask app
- Host: GitHub
- URL: https://github.com/sohamratnaparkhi/btd_web
- Owner: SohamRatnaparkhi
- License: mit
- Created: 2022-05-29T20:52:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T14:59:27.000Z (about 3 years ago)
- Last Synced: 2025-04-10T21:14:02.957Z (7 months ago)
- Topics: brain-tumor-detection, cnn, deep-learning, docker, flask, neural-networks
- Language: HTML
- Homepage:
- Size: 10.2 MB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# BTD_Web
This is a web app that run in integration with [`this repo`](https://github.com/SohamRatnaparkhi/BrainTumorDetection) 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.
- [Install `git`](https://git-scm.com/downloads)
- [Python3](https://www.python.org/downloads/)
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
- Setup [Docker](https://docs.docker.com/compose/gettingstarted/)
- Setup [Docker CLI](https://docs.docker.com/engine/reference/commandline/cli/)
- Then run the following commands
```
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](https://drive.google.com/drive/folders/1sBMxV7Aa5gym7jIKqKJbaYoTEmnLB-Ga?usp=sharing)
* 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


- Output screen after submitting the required details:

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