forked from wolny/pytorch-3dunet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_config_regression.yaml
54 lines (52 loc) · 2.12 KB
/
test_config_regression.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
# path to the checkpoint file containing the model
model_path: 3dunet/best_checkpoint.pytorch
# use a fixed random seed to guarantee that when you run the code twice you will get the same outcome
manual_seed: 0
# model configuration
model:
# model class, e.g. UNet3D, ResidualUNet3D
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 (gcr - GroupNorm+Conv3d+ReLU)
layer_order: gcr
# feature maps scale factor
f_maps: 16
# number of groups in the groupnorm
num_groups: 8
# if True applies the final normalization layer (sigmoid or softmax), otherwise the networks returns the output from the final convolution layer; use False for regression problems, e.g. de-noising
is_segmentation: false
predictor:
# standard in memory predictor
name: 'StandardPredictor'
# specify the test datasets
loaders:
# 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
# mirror pad the raw data in each axis for sharper prediction near the boundaries of the volume
mirror_padding: [16, 32, 32]
# path to the raw data within the H5
raw_internal_path: raw
# how many subprocesses to use for data loading
num_workers: 4
test:
# paths to the test datasets; if a given path is a directory all H5 files ('*.h5', '*.hdf', '*.hdf5', '*.hd5')
# inside this this directory will be included as well (non-recursively)
file_paths:
- '../resources/random3D.h5'
# SliceBuilder configuration, i.e. how to iterate over the input volume patch-by-patch
slice_builder:
# SliceBuilder class
name: SliceBuilder
# train patch size given to the network (adapt to fit in your GPU mem, generally the bigger patch the better)
patch_shape: [64, 128, 128]
# train stride between patches
stride_shape: [32, 100, 100]
transformer:
raw:
# apply min-max scaling and map the input to [-1, 1]
- name: Normalize
- name: ToTensor
expand_dims: true