1 Star 0 Fork 0

zweien/pytorch-3dunet

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_config_4d_input.yaml 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
# path to the checkpoint file containing the model
model_path: 3dunet/best_checkpoint.pytorch
# model configuration
model:
# model class
name: UNet3D
# number of input channels to the model
in_channels: 3
# number of output channels
out_channels: 2
# determines the order of operators in a single layer (crg - Conv3d+ReLU+GroupNorm)
layer_order: crg
# feature maps scale factor
f_maps: 32
# number of groups in the groupnorm
num_groups: 8
# apply element-wise nn.Sigmoid after the final 1x1 convolution, otherwise apply nn.Softmax
final_sigmoid: false
# 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: true
# predictor configuration
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: 8
# test loaders configuration
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/random4D.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:
- name: Standardize
- name: ToTensor
expand_dims: true
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zweien/pytorch-3dunet.git
git@gitee.com:zweien/pytorch-3dunet.git
zweien
pytorch-3dunet
pytorch-3dunet
master

搜索帮助