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.sh
chmod u+x ./setup.sh ./setup.sh
-
Prepare dataset
- Create a new folder under
./src
with the dataset name (see./Schiz
for reference) and modify the setup and config files. - Edit
__init__.py
to specify how to retrieve site, age and gender. Labelling standards too, if applicable. - Add dataset to
DataloaderBase
class (_get_indices()
too) andDataset
class in./src/data.py
- Create a new folder under
-
Create
.yml
files inconfig_template
to define model hyperparameters used and training settings. More details about the YAML files can be found in themiccai_2022
branch. -
Train the model (and any other models - specify in the
.yml
file) usingsingle_stage_framework.py
.python single_stage_framework.py --config config_templates/individual/SHRED-III.yml