DIAGNijmegen / pathology-whole-slide-data

A package for working with whole-slide data including a fast batch iterator that can be used to train deep learning models.
https://diagnijmegen.github.io/pathology-whole-slide-data/
Apache License 2.0
86 stars 24 forks source link

RegistrantNotRegisteredError in Tiger-Hooknet Example #14

Closed AmartyaCSB closed 2 years ago

AmartyaCSB commented 2 years ago

Hi, Thanks a lot for this tool! I am trying to run the notebook Tiger - HookNet training. I have set up python 3.8.5 and on RHEL server/Windows machine.

I am encountering this error:

RegistrantNotRegisteredError: 
        Registrant 'openslide' is not found in the register of class 'WholeSlideImageBackend' with an empty register

when I try to create the create_batch_iterator I have openslide-python installed already.

Could you please help me in fixing this issue? It comes up in RHEL servers, windows machines.

martvanrijthoven commented 2 years ago

Dear Amartya Mandal,

Thanks for your interest in this package.

Wholeslidedata supports three image backends: openslide, ASAP, and pyvips. You will have to install additional software for these backends. You will only need one.

For openslide please see installation instructions here For ASAP please see installation instructions here for pyvips please see installation instructions here

You can easily switch between different image backends in the config file. The options are 'openslide', 'asap' and 'pyvips'

For example:

wholeslidedata:
    default:
        image_backend: asap

openslide is currently the default image backend.

Please let me know if you run into a problem while installing openslide, ASAP, or pyvips.

Best wishes, Mart

martvanrijthoven commented 2 years ago

Dear Amartya Mandal,

Just to add:

on REHL, you will also need to install openslide next to openslide-python: yum install openslide

on window, you will probably also need to install the windows binaries for openslide (but I am not sure about this because I don't have a windows computer to test)

Best wishes, Mart