Post Transform Invertd error #7611
Replies: 3 comments 2 replies
-
Hi @jonathanquantumalpha, could you please paste the whole error message? Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
-
Here it is: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Hi I've created a simple app which segment tumors for colon. I want to apply post_transforms for the original image (instead of the transformed) as part of the final output shown, however my invertd came to the following error:
RuntimeError: applying transform <monai.transforms.post.dictionary.Invertd object at 0x2cefdb520>
Traceback:
File "/Users/miniconda3/envs/5organs/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/Users/Python_Projects/post.py", line 157, in
test_outputs = post_transforms({"image": test_images, "pred": test_outputs})
File "/Users/miniconda3/envs/5organs/lib/python3.10/site-packages/monai/transforms/compose.py", line 322, in call
result = execute_compose(
File "/Users/miniconda3/envs/5organs/lib/python3.10/site-packages/monai/transforms/compose.py", line 111, in execute_compose
data = apply_transform(
File "/Users/miniconda3/envs/5organs/lib/python3.10/site-packages/monai/transforms/transform.py", line 171, in apply_transform
raise RuntimeError(f"applying transform {transform}") from e
Here is the code snippet:
Beta Was this translation helpful? Give feedback.
All reactions