Git Product home page Git Product logo

zhouyudan / transbts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rubics-xuan/transbts

0.0 0.0 0.0 72.43 MB

This repo provides the official code for : 1) TransBTS: Multimodal Brain Tumor Segmentation Using Transformer (https://arxiv.org/pdf/2103.04430.pdf) , accepted by MICCAI2021. 2) TransBTSV2: Towards Better and More Efficient Volumetric Segmentation of Medical Images(https://arxiv.org/abs/2201.12785).

License: Apache License 2.0

Python 100.00%

transbts's Introduction

TransBTS(MICCAI2021)& TransBTSV2 (To Be Updated)

This repo is the official implementation for:

  1. TransBTS: Multimodal Brain Tumor Segmentation Using Transformer.

  2. TransBTSV2: Towards Better and More Efficient Volumetric Segmentation of Medical Images.

The details of the our TransBTS and TransBTSV2 can be found at the models directory (TransBTS and TransBTSV2) in this repo or in the original paper.

Requirements

  • python 3.7
  • pytorch 1.6.0
  • torchvision 0.7.0
  • pickle
  • nibabel

Data Acquisition

  • The multimodal brain tumor datasets (BraTS 2019 & BraTS 2020) could be acquired from here.

  • The liver tumor dataset LiTS 2017 could be acquired from here.

  • The kidney tumor dataset KiTS 2019 could be acquired from here.

Data Preprocess (BraTS 2019 & BraTS 2020)

After downloading the dataset from here, data preprocessing is needed which is to convert the .nii files as .pkl files and realize date normalization.

python3 preprocess.py

Training

Run the training script on BraTS dataset. Distributed training is available for training the proposed TransBTS, where --nproc_per_node decides the numer of gpus and --master_port implys the port number.

python3 -m torch.distributed.launch --nproc_per_node=4 --master_port 20003 train.py

Testing

If you want to test the model which has been trained on the BraTS dataset, run the testing script as following.

python3 test.py

After the testing process stops, you can upload the submission file to here for the final Dice_scores.

Citation

If you use our code or models in your work or find it is helpful, please cite the corresponding paper:

  • TransBTS:
@inproceedings{wang2021transbts,
  title={TransBTS: Multimodal Brain Tumor Segmentation Using Transformer},  
  author={Wang, Wenxuan and Chen, Chen and Ding, Meng and Li, Jiangyun and Yu, Hong and Zha, Sen},
  booktitle={International Conference on Medical Image Computing and Computer Assisted Intervention (MICCAI)},
  year={2021}
}
  • TransBTSV2:
@article{li2022transbtsv2,
  title={TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation},
  author={Li, Jiangyun and Wang, Wenxuan and Chen, Chen and Zhang, Tianxiang and Zha, Sen and Yu, Hong and Wang, Jing},
  journal={arXiv preprint arXiv:2201.12785},
  year={2022}
}

Reference

1.setr-pytorch

2.BraTS2017

transbts's People

Contributors

rubics-xuan avatar

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.