If an error like below appears when running predicter.py, it means your patch size is larger than the input shape.
AssertionError: ROI [568:1000, 568:1000, 568:1000] (432, 432, 432) does not align with voxel size (8, 8, 8) * data shape (1, 3, 72, 72, 72)
To calculate patch size:
432/8 = 54, this is match output size
Use input_shape = (172,172,172) to get output_shape=(48,48,48).
If an error like below appears when running
predicter.py
, it means your patch size is larger than the input shape.AssertionError: ROI [568:1000, 568:1000, 568:1000] (432, 432, 432) does not align with voxel size (8, 8, 8) * data shape (1, 3, 72, 72, 72)
To calculate patch size: 432/8 = 54, this is match output size Use
input_shape = (172,172,172)
to getoutput_shape=(48,48,48)
.