This repo contains the code for various variants of the SHRED architecture.
A previous version of the repo, linked to our MICCAI 2022 submission, can be found on the branch miccai_2022.
Data is available for download at the following links: SchizConnect, UCLA. Some sites in SchizConnect seem to be down for some time.
-
Create and activate new conda environment
conda create -n <env_name> python=3.8 conda activate <env_name> -
Run
setup.shchmod u+x ./setup.sh ./setup.sh
-
Prepare dataset
- Create a new folder under
./srcwith the dataset name (see./Schizfor reference) and modify the setup and config files. - Edit
__init__.pyto specify how to retrieve site, age and gender. Labelling standards too, if applicable. - Add dataset to
DataloaderBaseclass (_get_indices()too) andDatasetclass in./src/data.py
- Create a new folder under
-
Create
.ymlfiles inconfig_templateto define model hyperparameters used and training settings. More details about the YAML files can be found in themiccai_2022branch. -
Train the model (and any other models - specify in the
.ymlfile) usingsingle_stage_framework.py.python single_stage_framework.py --config config_templates/individual/SHRED-III.yml