[8c9e01]: / bc-count / config.py

Download this file

37 lines (32 with data), 1.2 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
##############################################
# #
# Project configuration file #
# #
# Author: Amine Neggazi #
# Email: neggazimedlamine@gmail/com #
# Nick: nemo256 #
# #
# Please read bc-count/LICENSE #
# #
##############################################
'''
Cell type can be wither rbc, wbc or plt
which stands for:
rbc --> Red blood cells
wbc --> White blood cells
plt --> Platelets
'''
cell_type = 'wbc' # rbc, wbc or plt
model_type = 'do_unet' # do_unet or segnet
if model_type == 'do_unet':
model_name = cell_type
input_shape = (188, 188, 3)
output_shape = (100, 100, 1)
else:
model_name = cell_type + '_segnet'
input_shape = (128, 128, 3)
output_shape = (128, 128, 1)
padding = [200, 100]
output_directory = 'output/' + model_type + '/' + cell_type
if not cell_type in ['rbc', 'wbc', 'plt']:
print('Invalid cell type!')