2 This is the configuration module. 6 __author__ =
'Saul Alonso-Monsalve' 7 __email__ =
"saul.alonso.monsalve@cern.ch" 11 config = configparser.ConfigParser()
13 config[
'random'] = {
'seed':
'7',
16 config[
'images'] = {
'views':
'3',
19 'standardize':
'False',
20 'path':
'/scratch/cvn/datasetRaw'}
22 config[
'dataset'] = {
'uniform':
'False',
23 'path':
'/scratch/cvn/dataset',
24 'partition_prefix':
'/partition',
25 'labels_prefix':
'/labels'}
27 config[
'log'] = {
'path':
'/scratch/cvn/log',
30 config[
'model'] = {
'architecture':
'resnet50',
31 'checkpoint_path':
'/scratch/cvn/checkpoint',
32 'checkpoint_prefix':
'/model',
33 'checkpoint_save_many':
'True',
34 'checkpoint_save_best_only':
'False',
35 'checkpoint_period':
'1',
36 'parallelize':
'False',
38 'print_summary':
'False',
42 config[
'train'] = {
'resume':
'False',
43 'weighted_loss_function':
'False',
44 'class_weights_prefix':
'/class_weights',
50 'early_stopping_patience':
'5',
52 'max_queue_size':
'10'}
54 config[
'validation'] = {
'batch_size':
'32',
57 config[
'test'] = {
'output_path':
'/scratch/cvn/output',
58 'output_prefix':
'/test_info',
66 with
open(
'config.ini',
'w')
as configfile:
67 config.write(configfile)
int open(const char *, int)
Opens a file descriptor.