-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
63 lines (36 loc) · 1.33 KB
/
config.py
File metadata and controls
63 lines (36 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 13 12:08:59 2018
@author: sage
"""
import os
config = {}
#Could also hypothetically only load some data into memory, some load~
config['in_memory'] = False
config['memory_loc'] = '/mnt/sda5/temp/'
config['compress'] = True
#Where to save models
config['model_loc'] = '/home/sage/GenDiagFramework/saved_models/'
# Retina Net (RN) Config Information #
######################################
config['name_convs'] = {'AAA': 0, '': None}
config['RN_input_size'] = (512, 512, 1)
# Binary Classification Config Information #
############################################
#Input size to the network
config['BC_input_size'] = (128, 128, 1)
#Max that each dim. can be padded before reshape- based on
#the given crop labels. Set to 0 for just reshape.
config['BC_pad_limit'] = 5
# 3D Segmentation Config Information #
############################################
#Input size for 3D segmentation network
config['Seg_input_size'] = (1, 128, 128, 128)
#Global clip range - if none, set [-big number, big number]
config['clip_range'] = [-100, 600]
#For all location configs, make sure they are valid directories, if not make one
locs = [config['memory_loc'], config['model_loc']]
#for l in locs:
# if not os.path.exists(l):
# os.makedirs(l)