All AI tool like Totalsegmentator v2 and SAM/MedSAM tool fails to produce segmentation.
Relevant part of the log:
742.28 core.mod.core.imgIo: Writing image: C:\Users\Stefan\AppData\Local\Temp\\mitk-WwHUza\totalseg-in-WwHUza\WwHUza_000_0000.nii.gz 742.38 core.mod.seg.totalsegmentatorTl: -i C:\Users\Stefan\AppData\Local\Temp\\mitk-WwHUza\totalseg-in-WwHUza\WwHUza_000_0000.nii.gz -o C:\Users\Stefan\AppData\Local\Temp\\mitk-WwHUza\totalseg-out-WwHUza\WwHUza_000.nii.gz --ml C:/Users/Stefan/AppData/Local\DKFZ\.totalsegmentator_v2\Scripts 745.28 core.mod.seg.totalsegmentatorTl ERROR: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. C:\Users\Stefan\AppData\Local\DKFZ\.totalsegmentator_v2\Lib\site-packages\nnunetv2\inference\data_iterators.py:41: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.) data = torch.from_numpy(data).to(dtype=torch.float32, memory_format=torch.contiguous_format)
Looks like latest numpy v2 release (June 16) is not working well with Pytorch.
https://pypi.org/project/numpy/#history