nnUNet报错
nnUNet报错处理
Traceback (most recent call last):
File "/opt/conda/envs/nnunet/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/opt/conda/envs/nnunet/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/nnunet/lib/python3.11/site-packages/batchgenerators/dataloading/nondet_multi_threaded_augmenter.py", line 125, in results_loop
raise e
File "/opt/conda/envs/nnunet/lib/python3.11/site-packages/batchgenerators/dataloading/nondet_multi_threaded_augmenter.py", line 103, in results_loop
raise RuntimeError("One or more background workers are no longer alive. Exiting. Please check the "
RuntimeError: One or more background workers are no longer alive. Exiting. Please check the print statements above for the actual error message
Exception in thread Thread-2 (results_loop):
Traceback (most recent call last):
File "/opt/conda/envs/nnunet/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/opt/conda/envs/nnunet/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/nnunet/lib/python3.11/site-packages/batchgenerators/dataloading/nondet_multi_threaded_augmenter.py", line 125, in results_loop
raise e
File "/opt/conda/envs/nnunet/lib/python3.11/site-packages/batchgenerators/dataloading/nondet_multi_threaded_augmenter.py", line 103, in results_loop
raise RuntimeError("One or more background workers are no longer alive. Exiting. Please check the "
RuntimeError: One or more background workers are no longer alive. Exiting. Please check the print statements above for the actual error message
Aborted (core dumped)
原因:数据集的标签像素值是0,10,20,30…70不在 [0, num_classes-1]内,调整一下就好了。