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
614 stars 196 forks source link

Integration of Monailabel and Girder #1697

Open Aurora-God opened 5 months ago

Aurora-God commented 5 months ago

Hello, I would like to integrate Monailabel with Girder as the data source, and both Monailabel and Girder will be launched using Docker The problem I encountered: I used the official image of Monailabel, version: projectmonai/Monailabel: 0.8.0 After entering the container, I used the command to start monai: monailabel start_server -- app/usr/local/monailabel/sample apps/radiology -- studies http://girder_username:girder_password @Girder_ip: girder_port/api/v1-- conf models deepedit -- conf datasets. dataset1. source girder -- conf girder.api_token But when I access this address: http://monai_ip:8000/ohif/ , will jump here: http://monai_ip:8000/ohif/notfoundserver Unable to access my data in Girder I'm not sure where the problem is, but I can be certain that the Docker port and IP address are not the problem, and I started it in the same way (different startup commands: monailabel start_server -- app/usr/local/monailabel/sample apps/radiology -- studies) http://username:password @Orthancip: Orthanc port/dicom web -- conf models deepedit )Can connect to Orthanc to access its data Please help me, thank you

AHarouni commented 4 months ago

Hi Aurora I am not familiar with Girder, does it use dicom web to access data ? If not you need to figure how Grider exposes data and write a datastore to allow this communication. Check other datastores as xnat / cvat etc.

if it does use dicom web then you should check that you are able to access data using the Grider_ip:port then the issue might be in the user / password being passed since 0.7 or so it changed to be passed as variables as

export MONAI_LABEL_DICOMWEB_USERNAME=orthanc
export MONAI_LABEL_DICOMWEB_PASSWORD=orthanc

Hope that helps

Aurora-God commented 2 months ago

Thank you very much for your reply. Girder is probably not DICOMWEB. I think it should be similar to XNAT. So, how does Monailabel link XNAT ?

AHarouni commented 2 months ago

You only need to implement the datastore interface https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/interfaces/datastore.py you can see how xnat did it here https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/datastore/xnat.py

You can always add variables to get user name and password to connect