Downloads · 30 days
0
tbhswanand/brats-mri-segmentation
brats-mri-segmentation is a image segmentation model from tbhswanand. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
This model performs brain tumor segmentation on MRI scans using a deep learning architecture (UNet-based). It is trained on the BraTS dataset for segmenting tumor regions such as:
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Repo size
75.4 MB
Likes
0
Public
Click a slice to open those files.
.pt56.5 MB · 75%
From the Hugging Face model README
This model performs brain tumor segmentation on MRI scans using a deep learning architecture (UNet-based). It is trained on the BraTS dataset for segmenting tumor regions such as:
Dataset: BraTS (Brain Tumor Segmentation Challenge)
Modalities: T1, T1c, T2, FLAIR
Preprocessing:
pip install torch torchvision nibabel numpy
import torch
model = torch.load("model.pth", map_location="cpu")
model.eval()
import numpy as np
# Example input (replace with actual preprocessing)
input_tensor = torch.randn(1, 4, 240, 240)
with torch.no_grad():
output = model(input_tensor)
mask = output.argmax(dim=1)
| Metric | Score |
|---|---|
| Dice Score (WT) | ~0.85 |
| Dice Score (TC) | ~0.80 |
| Dice Score (ET) | ~0.75 |
Note: Values may vary based on training setup
Specify your license here (MIT / Apache 2.0 / etc.)
Swanand Wakadmane AI/ML Developer | Medical AI Enthusiast