Giter Site home page Giter Site logo

faizan1234567 / brats23-tumors-segmentation Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 2.0 32.39 MB

Brain tumors segmentation on 3D MRI images. The model has been trained on BratTS20 and BraTS21 datasets, and now working with BraTS23.

License: MIT License

Python 94.72% Jupyter Notebook 5.28%
deep-learning brain-tumor-segmentation brats2020 medical-imaging 3d-segmentation computer-vision machine-learning medical-image-processing brats17 brats18

brats23-tumors-segmentation's Introduction

Typing SVG


I specialize in Deep Learning, Robotics, and Embedded Software. I'm passionate about vision-language models, medical image analysis, large language models, and robot learning.


Property Data
Languages Python Badge C++ Badge C Badge
Domain Knowledge Machine Learning Badge Computer Science Development Badge Deep Learning Badge Software Development Badge
CI / CD Markdown Badge Github Badge Github Actions Badge
OS Windows Badge Ubuntu Badge
Tools & Platform Google Colab Badge VS Code Badge Conda Badge Docker Badge Sublime Badge Vim Badge
Artificial Intelligence PyTorch Badge TensorFlow Badge Lightning Badge Weight & Baises Badge Keras Badge
Education Coursera Badge Udemy Badge DataCamp Badge Edx Badge Khan Academy Badge

Gmail LinkedIn WhatsApp

Feel free to connect with me! I'm always open to engaging in exciting opportunities and insightful discussions. Let's connect and collaborate!

brats23-tumors-segmentation's People

Contributors

faizan1234567 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brats23-tumors-segmentation's Issues

Expected performance

Thanks for the repo! Do you have expected algorithm outputs for when we use or don't use the pretrained weights? Also how did you pretrain the model considering a large portion of the 2021 and 2023 dataset overlap (as far as I know)?

RuntimeError: CUDA error: out of memory

I am constantly getting runtime error whenever the validation step reaches. I have tried to run it in google colab as well as in my local computer with nvidia rtx3090. what could be the reason? any idea? thank you.

Detailed description
Val 0/4 0/250 , dice_tc: 1.0353405 , dice_wt: 0.96759117 , dice_et: 1.3043995 , time 6.37s
Val 0/4 1/250 , dice_tc: 1.0755885 , dice_wt: 1.1260056 , dice_et: 1.3453007 , time 3.67s
Error executing job with overrides: []
Traceback (most recent call last):
File "/home/navi/Brats-20-Tumors-segmentation/train.py", line 478, in main
run(args, model=model,
File "/home/navi/Brats-20-Tumors-segmentation/train.py", line 358, in run
) = trainer(
File "/home/navi/Brats-20-Tumors-segmentation/train.py", line 249, in trainer
val_acc = val(model= model,
File "/home/navi/Brats-20-Tumors-segmentation/train.py", line 138, in val
for index, batch_data in enumerate(loader):
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 631, in next
data = self._next_data()
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1372, in _process_data
data.reraise()
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/_utils.py", line 722, in reraise
raise exception
RuntimeError: Caught RuntimeError in pin memory thread for device 0.
Original Traceback (most recent call last):
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/_utils/pin_memory.py", line 36, in do_one_step
data = pin_memory(data, device)
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/_utils/pin_memory.py", line 62, in pin_memory
return type(data)({k: pin_memory(sample, device) for k, sample in data.items()}) # type: ignore[call-arg]
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/_utils/pin_memory.py", line 62, in
return type(data)({k: pin_memory(sample, device) for k, sample in data.items()}) # type: ignore[call-arg]
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/utils/data/_utils/pin_memory.py", line 57, in pin_memory
return data.pin_memory(device)
File "/home/navi/MONAI/monai/data/meta_tensor.py", line 282, in torch_function
ret = super().torch_function(func, types, args, kwargs)
File "/home/navi/miniconda3/envs/myenv/lib/python3.10/site-packages/torch/_tensor.py", line 1418, in torch_function
ret = func(*args, **kwargs)
RuntimeError: CUDA error: out of memory
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Steps to reproduce

  1. Set all the directories correctly in the configuration file.
  2. Run python train.py

MASK

whats mask in this dataset? can u explain more?

PreTrained Weights

Hi Faizan, Thanks for making available this amazing work to everyone on github. I'm trying to use this model to obtain the brain tumor segmentation which I would be using for the downstream tasks. I currently have very limited computational resources to actually train the model and use it for inference. It would be really helpful if you could provide the pretrained model and its weights. I will make sure to give credits to this work if I use it for publication. thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.