binli123 / dsmil-wsi

DSMIL: Dual-stream multiple instance learning networks for tumor detection in Whole Slide Image
MIT License
358 stars 88 forks source link

Threshold for filtering background in different magnifications #94

Closed akidway closed 4 months ago

akidway commented 6 months ago

Hi @binli123,

Thank you for your excellent work.

I'm currently using deepzoom_tiler.py to process slides. I executed the following command:

python3 deepzoom_tiler.py -m 0 1 -b 20 -d CAMELYON16 -v tif -j 16 -t 25

My intention was to generate 20x and 10x tiles from a single slide. However, I noticed that I ended up with 2757 folders but 6490 jpeg files. Shouldn't the number of folders match the number of jpeg files?

Furthermore, when I visualized the sampled tiles for both 20x and 10x, I observed that the sampled regions are different. It appears that the sampled region for the 20x tiles is accurate when using a threshold of 25.

Does this mean that if I want to use a threshold of 25, I should rely on the 20x tiles and their corresponding 10x tiles, rather than the other way around?

20x sampled region image

10x sampled region image