File size: 419 Bytes
2571f24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

"""
Datasets interface.
"""
from .constants import dataset_setups
from .datasets import BaseGen, BrainIDGen



dataset_options = {  
    'default': BaseGen,
    'brain_id': BrainIDGen,
}




def build_datasets(gen_args, device):
    """Helper function to build dataset for different splits ('train' or 'test')."""
    datasets = {'all': dataset_options[gen_args.dataset_option](gen_args, device)}
    return datasets