-
-
Notifications
You must be signed in to change notification settings - Fork 514
/
test_config.yml
43 lines (40 loc) · 1.22 KB
/
test_config.yml
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
# Download test data from: https://osf.io/tn4xj/
model_path: PATH_TO_BEST_CHECKPOINT
model:
name: ResidualUNet3D
# number of input channels to the model
in_channels: 1
# number of output channels
out_channels: 1
# determines the order of operators in a single layer (crg - Conv3d+ReLU+GroupNorm)
layer_order: gcr
# initial number of feature maps
f_maps: 32
# number of groups in the groupnorm
num_groups: 8
# apply element-wise nn.Sigmoid after the final 1x1x1 convolution, otherwise apply nn.Softmax
final_sigmoid: true
predictor:
name: 'StandardPredictor'
loaders:
# save predictions to output_dir
output_dir: PATH_TO_OUTPUT_DIR
# batch dimension; if number of GPUs is N > 1, then a batch_size of N * batch_size will automatically be taken for DataParallel
batch_size: 1
# how many subprocesses to use for data loading
num_workers: 8
# test loaders configuration
test:
file_paths:
- PATH_TO_TEST_DIR
slice_builder:
name: SliceBuilder
patch_shape: [ 80, 170, 170 ]
stride_shape: [ 80, 170, 170 ]
# halo around each patch
halo_shape: [ 16, 32, 32 ]
transformer:
raw:
- name: Standardize
- name: ToTensor
expand_dims: true