Spaces:
Sleeping
A newer version of the Gradio SDK is available:
5.20.1
title: Brain Tumour Detection
emoji: π¦
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 5.16.0
app_file: app.py
pinned: false
license: mit
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
π§ Brain Tumor Detection using YOLOv8 π―
π Overview
This Hugging Face Space allows users to upload MRI scan images and detect the presence of a brain tumor using the YOLOv8 object detection model. The model processes the uploaded image and provides an annotated output indicating whether a tumor is detected.
πΉ Built with: YOLOv8
| Gradio
| PyTorch
| OpenCV
πΉ Live on Hugging Face Spaces! β
β¨ Features
βοΈ Upload MRI scan images π₯
βοΈ YOLOv8-powered brain tumor detection π§
βοΈ Annotated image output with tumor detection πΈ
βοΈ Real-time diagnosis message β³
βοΈ Simple & intuitive UI powered by Gradio π¨
π How to Use
1οΈβ£ Upload an MRI image by clicking the "Upload MRI Image" button.
2οΈβ£ Click "Submit" to analyze the image.
3οΈβ£ View the results:
- The uploaded MRI image with bounding boxes (if a tumor is detected).
- A diagnosis message ("Tumor Detected" or "No Tumor Detected").
β No installation required! Just visit the Hugging Face Space and start detecting brain tumors instantly.
π Model Details
This app uses YOLOv8, an advanced object detection model fine-tuned for brain tumor detection.
- Default model:
yolov8n.pt
(Replace withbest.pt
for custom-trained model). - Bounding box output with confidence score.
- Fast & accurate inference using PyTorch.
π Deployment on Hugging Face Spaces
1οΈβ£ Create a New Hugging Face Space
Go to Hugging Face Spaces and create a new Gradio Space.
2οΈβ£ Upload the following files:
app.py
(Main Gradio app)requirements.txt
(Dependencies)model/best.pt
(Your trained YOLOv8 model)
3οΈβ£ Run the Space!
Hugging Face will automatically install dependencies and deploy the app.
π Dependencies (Auto-installed in Hugging Face)
gradio
torch
torchvision
ultralytics
opencv-python
numpy