Home

Awesome

brainSPADE3D_rel

This is the code that was used for: "A 3D generative model of pathological multi-modal MR images and segmentations" by Virginia Fernandez, Walter Hugo Lopez Pinaya, Pedro Borges, Mark Graham, Tom Vercauteren and M Jorge Cardoso. Reference will be inserted upon its availability. The codebase is based on

To use the code, you first need to use git clone https://github.com/Project-MONAI/GenerativeModels.git into the repo, as it is used by the label generator functions.

Runnable scripts:

These files can be used in run_scripts. The first 2 use yaml configuration files. Examples can be found in saved_configs. The configurations that are present there ARE NOT the ones from the paper. The paper configurations can be found in its Supplementary Materials.

Format of the data

This section explains the requirements that the data has to fulfill to run the code, and the ones that are desirable. For both the label generator training and the image generator, the data is provided via a TSV file:

How to create these TSV files? You can write your own code. The trainers should work as long as the TSVs satisfy the requirements above. Nonetheless, there are functions you can use in data>dataset_utils.py: