mahmoodlab / CLAM

Data-efficient and weakly supervised computational pathology on whole slide images - Nature Biomedical Engineering
http://clam.mahmoodlab.org
GNU General Public License v3.0
1.02k stars 340 forks source link

How to set the "step_size" Parameter in create_patches.py or create_patches_fp.py? #201

Closed ShiCrazy closed 5 months ago

ShiCrazy commented 1 year ago

I have previously set the step_size to 0, ensuring that there is no overlap between different tiles. However, I am now considering whether it would be beneficial to adjust the step_size setting. I would like to ask the author or anyone else if they have good experience with setting this parameter. Thank you to everyone who has contributed to this repository!

fedshyvana commented 11 months ago

I believe the default is to set the step_size = patch_size so there's no overlap between patches. I have not experienced with any other patch sizes, mostly because decreasing the patch_size (i.e. increasing overlap) will lead to increasing computational cost/memory requirement quadratically.