[26e314]: / main_data_generation.py

Download this file

22 lines (15 with data), 578 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
__author__ = 'adeb'
from spynet.utils.utilities import load_config
from data_brain_parcellation import generate_and_save
if __name__ == '__main__':
"""
Script to create the testing/training datasets given configuration files
"""
### Load the config file
data_cf = load_config("cfg_testing_data_creation.py")
### Generate and write on file the dataset
generate_and_save(data_cf)
### Load the config file
data_cf = load_config("cfg_training_data_creation.py")
### Generate and write on file the dataset
generate_and_save(data_cf)