SBU-BMI / wsinfer

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

[FEAT] check that thumbnail is an RGB image #216

Closed kaczmarj closed 4 months ago

kaczmarj commented 4 months ago

https://github.com/SBU-BMI/wsinfer/blob/270308ff1d15602465fdb850a35277b22de60a8c/wsinfer/patchlib/__init__.py#L123

in logs from one user, there was an assertion error from the segmentation functions that the third axis of the thumbnail array did not have 3 items. it could have been an RGBA or some other type of image... let's make sure we make it RGB, because that's what we expect.