msahasrabudhe / miccai2020_self_sup_nuclei_seg

Self-supervised nuclei segmentation (MICCAI 2020)
GNU General Public License v3.0
40 stars 9 forks source link

from openslide.examples.deepzoom import deepzoom_tile #6

Open NdaAzr opened 2 years ago

NdaAzr commented 2 years ago

Hi, I am trying to use this repo for my own dataset. I am wondering how can import deepzoom_tile from openslide.examples.deepzoom. I am getting an error ModuleNotFoundError: No module named 'openslide.examples'

msahasrabudhe commented 2 years ago

Hello,

For this, I think you would need to download the source code of openslide available here: https://openslide.org/download/. You can get versions 1.1.2 and 1.2.0 of OpenSlide Python interface (stable API). Once you extract the .tar.gz file, place the directory openslide in the same directory as the file tile_processing.py (please check if a rename to oslide is required or not, as mentioned on line 11 of tile_processing.py).

Let me know if it works!