SBU-BMI / wsinfer

🔥 🚀 Blazingly fast pipeline for patch-based classification in whole slide images
https://wsinfer.readthedocs.io
Apache License 2.0
56 stars 10 forks source link

[BUG] disable cache of tilesources in large_image #98

Closed kaczmarj closed 1 year ago

kaczmarj commented 1 year ago

large_image has two caches: (1) tilesources and (2) tiles. we disable the tile cache, but we do not disable the tilesources cache. this does not seem to cause a problem but the running process seems to maintain filehandles to the input images. we do not need this.

large_image.config.setConfig('cache_tilesource_maximum', 1)

can also look into these options (https://github.com/girder/large_image/issues/985)

    cache_tilesource_memory_portion = 1_000_000_000
    cache_tilesource_maximum = 64
kaczmarj commented 1 year ago

this does not appear to happen when using the openslide loader in large_image (with svs files). trying with tiff files to see if there is a difference in caching.