Input size error when using unet3dLayers with valid convolutional padding
Show older comments
I am working on training a 3D Unet for a multi-class segmentation problem. For the most part, I have followed the 3D Brain Tumor Segmentation example found on MathWorks for patch-based training. I was experimenting with using different patch sizes and there seems to be discrepancy between what the 'unet3dLayers' documentation says and what Matlab actually allows in terms of patch sizes. According to the documentation, when using valid convolutional padding the formula for allowed patch height size (which is the same for width and depth) is as follows:
Using default values for EncoderDepth and FilterSize (both values defaults are 3), unless I'm making a math error I get that height can be 36, 44, 52, 60, 68, 76, 84, 92, etc. However, when I run 'unet3dLayers' with a inputPatchSize of [36 36 36 1], Matlab gives me the following error: "The input size is constrained by valid convolution and depth of the encoder/decoder networks. You can specify input size as [92 92 92 1] instead of [36 36 36 1]." What am I getting wrong here?
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!