NVIDIA / ai-assisted-annotation-client

Client side integration example source code and libraries for AI-Assisted Annotation SDK
Other
307 stars 64 forks source link

Slicer 3D - Error Using nVIDIA AIAA - Prostate Model #92

Closed marioboccia1992 closed 1 year ago

marioboccia1992 commented 2 years ago

Dear all,

Unfortunately I’m facing issue using nVIDIA AIAA module "clara_pt_prostate_mri_segmentation" in 3D Slicer.

Running the AI I get this error:

" Traceback (most recent call last):

File “C:/Users/M/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/NvidiaAIAssistedAnnotation/lib/Slicer-4.11/qt-scripted-modules/SegmentEditorNvidiaAIAALib/SegmentEditorEffect.py”, line 410, in onClickSegmentation

extreme_points, result_file = self.logic.segmentation(in_file, session_id, model)

File “C:/Users/M/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/NvidiaAIAssistedAnnotation/lib/Slicer-4.11/qt-scripted-modules/SegmentEditorNvidiaAIAALib/SegmentEditorEffect.py”, line 1092, in segmentation

session_id=session_id,

File “C:\Users\M\AppData\Local\NA-MIC\Slicer 4.11.20210226\NA-MIC\Extensions-29738\NvidiaAIAssistedAnnotation\lib\Slicer-4.11\qt-scripted-modules\NvidiaAIAAClientAPI\client_api.py”, line 389, in inference

raise AIAAException(AIAAError.SERVER_ERROR, ‘Status: {}; Response: {}’.format(status, form))

NvidiaAIAAClientAPI.client_api.AIAAException: (3, ‘Status: 500; Response: b’{“error”:{“message”:[],“type”:“InferenceServerException”},“success”:false}\n’’) "

The prostate model probably fails because it requires two input images (T2 and ADC), but on Slicer I do not have the option to select two volumes.

Thank you very much !

M.

SachidanandAlle commented 2 years ago

you can run prostate input which has extra channel through slicer.. the best way you can run is by using direct APIs from AIAA.. when you visit http://127.0.0.1:5000/docs (where AIAA is running.. access /docs) to see the list of APIs and you can click try for inference api.. provide the input and get the output result (image)

SachidanandAlle commented 1 year ago

Closing this issue. Please use MONAILabel instead... feel free to raise any issue or start discussion over MONAILabel repo

diazandr3s commented 1 year ago

MONAI Label repo: https://github.com/Project-MONAI/MONAILabel