PytorchDigitalPathology icon indicating copy to clipboard operation
PytorchDigitalPathology copied to clipboard

No picture left when stride_size == patch_size

Open dan1elR opened this issue 3 years ago • 2 comments

In the script make_output_unet no picture is left after cropping away the padding if stride_size == patch_size. Additionally, as padding with this setting was only applied at the outside, the inner pictures get cropped though nothing was padded here.

https://github.com/choosehappy/PytorchDigitalPathology/blob/48e10d6c42c45f5abc8589186e6409eb4a341bf6/segmentation_epistroma_unet/make_output_unet_cmd.py#L142

dan1elR avatar Mar 08 '21 16:03 dan1elR

Does it seam right, to change the order and at first concatenate the tiles and afterwards removing half stride (dimensions need adjustment)?

dan1elR avatar Mar 08 '21 16:03 dan1elR

These parameters were very carefully chosen for the size of the network, input, stride, and output sizes. it is not intended as a general solution, but instead a jumping-off point for others to modify

On Mon, Mar 8, 2021 at 5:44 PM Murmeltier105 [email protected] wrote:

Does it seam right, to change the order and at first concatenate the tiles and afterwards removing half stride (dimensions need adjustment)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/choosehappy/PytorchDigitalPathology/issues/15#issuecomment-792890147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJ3XTGJMVY6CHRNKHZMSIDTCT5IJANCNFSM4YZVLUWA .

choosehappy avatar Mar 09 '21 10:03 choosehappy