-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml
91 lines (84 loc) · 3.37 KB
/
config.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Contains the path to the directory or file to process
path: "../DATA/ovules_interp/plantseg_test/"
preprocessing:
# enable/disable preprocessing
state: True
# create a new sub folder where all results will be stored
save_directory: "PreProcessing"
# rescaling the volume is essential for the generalization of the networks. The rescaling factor can be computed as the resolution
# of the volume at hand divided by the resolution of the dataset used in training. Be careful, if the difference is too large check for a different model.
factor: [1.0, 1.0, 1.0]
# the order of the spline interpolation
order: 2
# cropping out areas of little interest can drastically improve the performance of plantseg.
# crop volume has to be input using the numpy slicing convention [b_z:e_z, b_x:e_x, b_y:e_y], where b_zxy is the
# first point of a bounding box and e_zxy is the second. eg: [:, 100:500, 400:900]
crop_volume: "[:,:,:]"
# optional: perform Gaussian smoothing or median filtering on the input.
filter:
# enable/disable filtering
state: False
# Accepted values: 'gaussian'/'median'
type: gaussian
# sigma (gaussian) or disc radius (median)
filter_param: 1.0
cnn_prediction:
# enable/disable UNet prediction
state: True
# Trained model name, more info on available models and custom models in the README
model_name: "confocal_3D_unet_ovules_ds1x"
# If a CUDA capable gpu is available and corrected setup use "cuda", if not you can use "cpu" for cpu only inference (slower)
device: "cuda"
# how many subprocesses to use for data loading
num_workers: 8
# patch size given to the network (adapt to fit in your GPU mem)
patch: [10, 160, 160]
# stride between patches will be computed as `stride_ratio * patch`
# recommended values are in range `[0.5, 0.75]` to make sure the patches have enough overlap to get smooth prediction maps
stride_ratio: 0.75
# If "True" forces downloading networks from the online repos
model_update: False
cnn_postprocessing:
# enable/disable cnn post processing
state: False
# if True convert to result to tiff
tiff: False
# rescaling factor
factor: [1, 1, 1]
# spline order for rescaling
order: 2
segmentation:
# enable/disable segmentation
state: True
# Name of the algorithm to use for inferences. Options: MultiCut, MutexWS, GASP, DtWatershed
name: "MultiCut"
# Segmentation specific parameters here
# balance under-/over-segmentation; 0 - aim for undersegmentation, 1 - aim for oversegmentation. (Not active for DtWatershed)
beta: 0.5
# directory where to save the results
save_directory: "MultiCut"
# enable/disable watershed
run_ws: True
# use 2D instead of 3D watershed
ws_2D: True
# probability maps threshold
ws_threshold: 0.5
# set the minimum superpixels size
ws_minsize: 50
# sigma for the gaussian smoothing of the distance transform
ws_sigma: 2.0
# sigma for the gaussian smoothing of boundary
ws_w_sigma: 0
# set the minimum segment size in the final segmentation. (Not active for DtWatershed)
post_minsize: 50
segmentation_postprocessing:
# enable/disable segmentation post processing
state: False
# if True convert to result to tiff
tiff: False
# rescaling factor
factor: [1, 1, 1]
# spline order for rescaling (keep 0 for segmentation post processing
order: 0
# save raw input in the output segmentation file h5 file
save_raw: False