I tried to implement the suggestion given by the above error message.
It now gives another error
Please cite the following paper when using CTPelvic1K dataset:
Pengbo, Liu, et al. “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models.” arXiv preprint arXiv: (2021).
If you have questions or suggestions, feel free to open an issue at GitHub - MIRACLE-Center/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models”.
Traceback (most recent call last):
File “C:\ProgramData\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy\core_init_.py”, line 23, in
from . import multiarray
File “C:\ProgramData\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy\core\multiarray.py”, line 10, in
from . import overrides
File “C:\ProgramData\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy\core\overrides.py”, line 6, in
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\dev\CTPelvic1K\nnunet\inference\predict_simple.py”, line 8, in
from nnunet.inference.predict import predict_from_folder
File “C:\dev\CTPelvic1K\nnunet\inference\predict.py”, line 4, in
import numpy as np
File “C:\ProgramData\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy_init_.py”, line 144, in
from . import core
File “C:\ProgramData\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy\core_init_.py”, line 49, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
- The Python version is: Python3.10 from “C:\Users\akh\AppData\Local\Programs\Python\Python310\python.exe”
- The NumPy version is: “1.22.1”
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named ‘numpy.core._multiarray_umath’
Please cite the following paper when using CTPelvic1K dataset:
Pengbo, Liu, et al. “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models.” arXiv preprint arXiv: (2021).
If you have questions or suggestions, feel free to open an issue at GitHub - MIRACLE-Center/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models”.
C:\Users\akh\Downloads\all_data_2
python inference/predict_simple.py -i C:\Users\akh\Downloads\all_data_2\nnUNet\rawdata\ipcai2021_ALL_Test -o C:\Users\akh\Downloads\all_data_2\nnUNet\rawdata\ipcai2021_ALL_Test/Task22_ipcai2021__CTPelvic1K__fold0_2d_pred -t Task22_ipcai2021 -tr nnUNetTrainer -m 2d -f 0 --num_threads_preprocessing 8 --num_threads_nifti_save 4 --gpu 0