forked from wolny/pytorch-3dunet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_config.yml
40 lines (38 loc) · 1.14 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
# Download test data from: https://osf.io/8jz7e/
model_path: PATH_TO_BEST_CHECKPOINT
model:
name: UNet3D
# 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: [40, 90, 90]
transformer:
raw:
- name: Standardize
- name: ToTensor
expand_dims: true