-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheyeflow.py
36 lines (29 loc) · 933 Bytes
/
eyeflow.py
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
import os
# Disabling the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflowloader as tfl
import DataLoader, ui
if __name__ == '__main__':
args = ui.parseArgs()
dataLoader = DataLoader.DataLoader(
args.healthy,
args.glaucomatous,
args.diabetic,
args.startLearning,
args.endLearning+1,
args.startProcessing,
args.endProcessing+1,
x_patch_size=572,
y_patch_size=388) # Todo: Add to arg parser
eyes_to_train, eyes_to_calculate = dataLoader.loadData(verbose=args.verbose)
tfl.runTensorFlow(
eyes_to_train,
eyes_to_calculate,
batch_size=args.batch,
learning_rate=args.learningRate,
training_epochs=args.epochs,
x_patch_size=572,
y_patch_size=388, # Todo: Add to arg parser
verbose=args.verbose)
# X patch size: 572
# Y patch size: 388