Replies: 1 comment
-
Hi @tangy5 , Could you please help take a look at this question? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear,
Following this tutorial https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_pathology_nuclei_segmentation_QuPath.ipynb
Until the step, clicking MONAI Label/Annotations..., I selected as mentioned in the tutorial and click OK.
Then I got a popup message with this error:
(POST http://127.0.0.1:8000/infer/wsi/segmentation_nuclei?output=asap&image=JP2K-33003-1) 500
It seems that the URL is not correct as if I look at the MONAI Label API via 127.0.0.1:8000, I did not see wsi as a model.
Does any body face this kind of issue?
Running manually via MONAI Label API got the same 500 error
Error in the Terminal
[2023-06-15 11:10:56,282] [17256] [MainThread] [INFO] (monailabel.endpoints.wsi_infer:109) - WSI Infer Request: {'model': 'segmentation_nuclei', 'image': '/var/folders/vf/cbbhgfyx5hg8nk569bn3y87m0000gn/T/tmpe9_ueucs.svs', 'output': 'asap', 'level': 0, 'location': [1991, 4479, 1016, 968], 'size': [2048, 2048], 'tile_size': [1024, 1024], 'min_poly_area': 80} [2023-06-15 11:10:56,294] [17256] [MainThread] [INFO] (monailabel.interfaces.utils.wsi:58) - Total Tiles to infer 2 x 2: 4; Dimensions: 2048 x 2048 [2023-06-15 11:10:56,294] [17256] [MainThread] [INFO] (monailabel.interfaces.app:645) - WSI Infer Request (final): {'label_colors': {'Other': (255, 0, 0), 'Inflammatory': (255, 255, 0), 'Epithelial': (0, 0, 255), 'Spindle-Shaped': (0, 255, 0)}, 'max_workers': 4, 'device': ['cpu'], 'model': 'segmentation_nuclei', 'image': '/var/folders/vf/cbbhgfyx5hg8nk569bn3y87m0000gn/T/tmpe9_ueucs.svs', 'output': 'asap', 'level': 0, 'location': [1991, 4479, 1016, 968], 'size': [2048, 2048], 'tile_size': [1024, 1024], 'min_poly_area': 80} [2023-06-15 11:10:56,296] [17256] [MainThread] [ERROR] (uvicorn.error:434) - Exception in ASGI application Traceback (most recent call last): File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 429, in run_asgi result = await app( # type: ignore[func-returns-value] File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ return await self.app(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/fastapi/applications.py", line 276, in __call__ await super().__call__(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__ await self.middleware_stack(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__ raise exc File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__ await self.app(scope, receive, _send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__ await self.simple_response(scope, receive, send, request_headers=headers) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response await self.app(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__ raise exc File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__ await self.app(scope, receive, sender) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__ raise e File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ await self.app(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__ await route.handle(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/starlette/routing.py", line 66, in app response = await func(request) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app raw_response = await run_endpoint_function( File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function return await dependant.call(**values) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/monailabel/endpoints/wsi_infer.py", line 147, in api_run_wsi_v2_inference return run_wsi_inference(background_tasks, model, image, session_id, file, w, output) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/monailabel/endpoints/wsi_infer.py", line 111, in run_wsi_inference result = instance.infer_wsi(request) File "/Users/localadmin/anaconda3/envs/testpy39/lib/python3.9/site-packages/monailabel/interfaces/app.py", line 662, in infer_wsi device_ids[idx % len(device_ids)] ZeroDivisionError: integer division or modulo by zero
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions