Coder Social home page Coder Social logo

brasyn's Introduction


This is a tutorial about BraSyn challenge's setup and specific implementations during the validation and test stages.

Data format of the test set

Each patient in the test set has the same naming format as the ones in the training and validation sets.
However, one modality will be randomly dropped during the test stage.

We provide a Python script named dropout_modality.py to show how it works on the validation set.

Please note that your container will only take on one folder as the input and be iterated on the whole test set. You will expect the format like this:

   BraTS-GLI-99999-000

    |  BraTS-GLI-99999-000-t1c.nii.gz

    |  BraTS-GLI-99999-000-t1n.nii.gz

    |  BraTS-GLI-99999-000-t2f.nii.gz

In this case, t2w (T2-weighted) is missing

Detecting missing modality during inference

When presenting three image files in each test folder, if you wish to automatically figure out which one is missing, we provide a script to do it. Please check detect_missing_modality.py.

Please note that after synthesizing the missing one, you DO NOT need to copy the other three files to the output folder. Please check the end of the Python script. Afterward, we will do automated segmentation based on the four modalities (three real images + one fake image).

Please, DO NOT add any suffixes, such as '-synthetic.nii.gz' to the output.

Performing segmentation using the synthetic image as a part of the input

After generating the missing image, segmentation can be performed by taking three real modalities + the missing modality as the input. We use the FeTS Consensus Models for image segmentation, the command is:

${fets_root_dir}/bin/FeTS_CLI_Segment -d /path/to/output/DataForFeTS \ # data directory after invoking ${fets_root_dir}/bin/PrepareDataset

  -a fets_singlet,fets_triplet \ # can be used with all pre-trained models currently available in FeTS

  -lF STAPLE,ITKVoting,SIMPLE,MajorityVoting \ # if a single architecture is used, this parameter is ignored

  -g 1 \ # '0': cpu, '1': request gpu

  -t 0 # '0': inference mode, '1': training mode

brasyn's People

Contributors

hongweilibran avatar

Stargazers

Howard Pang avatar Lujun Gui avatar Winston Hu avatar  avatar

Watchers

 avatar

brasyn's Issues

Question regarding evaluation process

Firstly, thank you for providing the code related to the Brasyn challenge. While running the code, I have a question about measuring SSIM, specifically regarding the range of data values.

Should both array_real and array_syn, that is, GT and output, be in an unnormalized state? If not, the process of percentile clipping seems a bit unusual to me.

Additionally, I am curious about the reason why the prediction value is multiplied by two at line 66 in ssim.py.

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.