Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brats_mri_segmentation_v0.4.8 run time error #591

Open
anuragp2018 opened this issue Jun 5, 2024 · 1 comment
Open

brats_mri_segmentation_v0.4.8 run time error #591

anuragp2018 opened this issue Jun 5, 2024 · 1 comment

Comments

@anuragp2018
Copy link

When I try to run auto segmentation using Slicer, it shows this error.

[2024-06-05 23:59:28,218] [27056] [MainThread] [ERROR] (uvicorn.error:434) - Exception in ASGI application
Traceback (most recent call last):
File "D:\anaconda3\envs\monailabel\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\anaconda3\envs\monailabel\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\anaconda3\envs\monailabel\Lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monailabel\endpoints\infer.py", line 206, in api_run_inference
return run_inference(background_tasks, model, image, session_id, params, file, label, output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monailabel\endpoints\infer.py", line 172, in run_inference
result = instance.infer(request)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monailabel\interfaces\app.py", line 307, in infer
result_file_name, result_json = task(request)
^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monailabel\tasks\infer\basic_infer.py", line 307, in call
data = self.run_inferer(data, device=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monailabel\tasks\infer\basic_infer.py", line 514, in run_inferer
outputs = inferer(inputs, network)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monai\inferers\inferer.py", line 515, in call
return sliding_window_inference(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monai\inferers\utils.py", line 161, in sliding_window_inference
roi_size = fall_back_tuple(roi_size, image_size
)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monai\utils\misc.py", line 279, in fall_back_tuple
user = ensure_tuple_rep(user_provided, ndim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\monailabel\Lib\site-packages\monai\utils\misc.py", line 205, in ensure_tuple_rep
raise ValueError(f"Sequence must have length {dim}, got {len(tup)}.")
ValueError: Sequence must have length 2, got 3.

@yiheng-wang-nv
Copy link
Collaborator

Hi @anuragp2018 , could you post the issue in monailabel side? I think the bundle itself runs fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants