Input size error when using unet3dLayers with valid convolutional padding
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!