Project-MONAI / MONAILabel

MONAI Label is an intelligent open source image labeling and learning tool.
https://docs.monai.io/projects/label
Apache License 2.0
591 stars 189 forks source link

Pathology apps cannot read .ndpi file even if I've adjusted MONAILabel/sample-apps/pathology/main.py #1502

Open ShangWeiKuo opened 1 year ago

ShangWeiKuo commented 1 year ago

I've added .ndpi on the line 190 ( settings.MONAI_LABEL_DATASTORE_FILE_EXT = [".ndpi", ".svs", ".png", ".npy", "*.tif", ".xml"] ) in the MONAILabel/sample-apps/pathology/main.py.

However. When I start MONAI Label Server to launch pathology app, the ndpi files have still not been read by the app as the picture below.

image

How should I do to adjust the pathology app to make it read .ndpi files ?

diazandr3s commented 1 year ago

Hi @ShangWeiKuo,

This is a good question. Thanks for opening this issue. Actually, you have to add the extension here: https://github.com/Project-MONAI/MONAILabel/blob/1d034726c655102cf612053842b1c45727966612/monailabel/config.py#L71-L80

The change you've made is for when you run the MONAI Label server as a main Python script and without starting the server: https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/pathology/main.py#L179-L190

Hope this helps,

tangy5 commented 1 year ago

You will also need to check whether the pathology dataloader, whether the backends can actually support ndpi file format. I remember that the OpenSlide backends can open ndpi, but others may not. You could double check the dataloader.