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

Unable to conduct segmentation #25

Open
dentistfrankchen opened this issue Jan 29, 2025 · 1 comment
Open

Unable to conduct segmentation #25

dentistfrankchen opened this issue Jan 29, 2025 · 1 comment

Comments

@dentistfrankchen
Copy link

dentistfrankchen commented Jan 29, 2025

Hi guys, I got a log that looks like this:

I am using Amazon linux 2.
The cuda configuration has no problem.

2025/01/29 12:38:20.345 :: nnUNet is already installed (2.5.1) and compatible with requested version (nnunetv2).
2025/01/29 12:38:21.201 :: Transferring volume to nnUNet in /tmp/Slicer-IehaBL
2025/01/29 12:38:45.418 :: Starting nnUNet with the following parameters:
2025/01/29 12:38:45.418 ::
2025/01/29 12:38:45.418 :: /home/ec2-user/Slicer-5.7.0-2024-10-01-linux-amd64/lib/Python/bin/nnUNetv2_predict -i /tmp/Slicer-IehaBL/input -o /tmp/Slicer-IehaBL/output -d Dataset111_453CT -tr nnUNetTrainer -p nnUNetPlans -c 3d_fullres -f 0 -npp 1 -nps 1 -step_size 0.5 -device cuda -chk checkpoint_final.pth --disable_tta
2025/01/29 12:38:45.418 ::
2025/01/29 12:38:45.418 :: JSON parameters :
2025/01/29 12:38:45.418 :: {
2025/01/29 12:38:45.418 :: "folds": "0",
2025/01/29 12:38:45.418 :: "device": "cuda",
2025/01/29 12:38:45.418 :: "stepSize": 0.5,
2025/01/29 12:38:45.418 :: "disableTta": true,
2025/01/29 12:38:45.418 :: "nProcessPreprocessing": 1,
2025/01/29 12:38:45.418 :: "nProcessSegmentationExport": 1,
2025/01/29 12:38:45.418 :: "checkPointName": "",
2025/01/29 12:38:45.418 :: "modelPath": {
2025/01/29 12:38:45.418 :: "_path": "/home/ec2-user/Slicer-5.7.0-2024-10-01-linux-amd64/slicer.org/Extensions-33042/DentalSegmentator/lib/Slicer-5.7/qt-scripted-modules/Resources/ML"
2025/01/29 12:38:45.418 :: }
2025/01/29 12:38:45.418 :: }
2025/01/29 12:38:45.441 :: nnUNet preprocessing...
2025/01/29 12:38:46.784 :: Traceback (most recent call last):
2025/01/29 12:38:46.784 :: File "/home/ec2-user/Slicer-5.7.0-2024-10-01-linux-amd64/lib/Python/bin/nnUNetv2_predict", line 5, in
2025/01/29 12:38:46.784 :: from nnunetv2.inference.predict_from_raw_data import predict_entry_point
2025/01/29 12:38:46.784 :: File "/home/ec2-user/Slicer-5.7.0-2024-10-01-linux-amd64/lib/Python/lib/python3.9/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 16, in
2025/01/29 12:38:47.780 :: Loading inference results...
2025/01/29 12:38:51.427 :: Error loading results :
2025/01/29 12:38:51.427 :: Failed to load the segmentation.
2025/01/29 12:38:51.427 :: Something went wrong during the nnUNet processing.
2025/01/29 12:38:51.427 :: Please check the logs for potential errors and contact the library maintainers.

Why it does not work?

@Thibault-Pelletier
Copy link
Collaborator

Hi @dentistfrankchen,

Unfortunately, the important part of the logs seems to have been truncated (traceback is incomplete and doesn't inform on what when wrong in the predict_from_raw_data.py module.

Do you have a way to launch 3D Slicer using the main window and getting the full stack trace from 3D Slicer's console so that we can help you further?

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