Hi, thank you for the amazing repo!
While scrolling through the patch extraction code, I stumbled upon the following line and was wondering if this was intentional:
My understanding is that if len(results) == 1 (i.e we have only one patch coordinate), we're (accidentally) dropping it.
My fix would be to put if len(results)>0: instead.
Hi, thank you for the amazing repo! While scrolling through the patch extraction code, I stumbled upon the following line and was wondering if this was intentional:
https://github.com/mahmoodlab/CLAM/blob/6fbcaa38d79e69f83dd463527093848fa4aa5091/wsi_core/WholeSlideImage.py#L463
My understanding is that if
len(results) == 1
(i.e we have only one patch coordinate), we're (accidentally) dropping it. My fix would be to putif len(results)>0:
instead.Let me know what you think!