vqdang / hover_net

Simultaneous Nuclear Instance Segmentation and Classification in H&E Histology Images.
MIT License
537 stars 224 forks source link

fix bug that mrxs file may cause #265

Closed HaoyuCui closed 1 year ago

HaoyuCui commented 1 year ago

A mrxs format whole slide file contains a folder with various .dat files and a .mrxs file. During running run_infer.py, the program may handle the folder file as well, it will cause an error as OpenSlide can only read the .mrxs file instead of its folder. This PR fixes this problem by skipping the folder to let the wsi.py only read the supported .mrxs file itself while having no conflict with other formats of WSIs.