-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi developers,
Thanks for developing this useful package. I have run this package successfully for quite a few T1w MRI images, but I encountered this RuntimeError: Some background workers are no longer alive recently. I have no idea how to solve this issue, please kindly advise.
I post the full error messages here:
Predicting case_ 014:
perform_everything_on_device: False
Traceback (most recent call last):
File "/home/shared/Software/niproject_env/bin/DLMUSE", line 8, in
sys.exit(main())
^^^^^^
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/DLMUSE/main.py", line 335, in main
predictor.predict_from_files(
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 258, in predict_from_files
return self.predict_from_data_iterator(data_iterator, save_probabilities, num_processes_segmentation_export)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 370, in predict_from_data_iterator
proceed = not check_workers_alive_and_busy(export_pool, worker_list, r, allowed_num_queued=2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nnunetv2/utilities/file_path_utilities.py", line 103, in check_workers_alive_and_busy
raise RuntimeError('Some background workers are no longer alive')
RuntimeError: Some background workers are no longer alive
Process SpawnProcess-19:
Traceback (most recent call last):
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nnunetv2/inference/data_iterators.py", line 58, in preprocess_fromfiles_save_to_queue
raise e
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nnunetv2/inference/data_iterators.py", line 50, in preprocess_fromfiles_save_to_queue
target_queue.put(item, timeout=0.01)
File "", line 2, in put
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/managers.py", line 837, in _callmethod
raise convert_to_error(kind, result)
multiprocessing.managers.RemoteError:
Traceback (most recent call last):
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/managers.py", line 260, in serve_client
self.id_to_local_proxy_obj[ident]
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: '7f280b9f4f90'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/managers.py", line 262, in serve_client
raise ke
File "/home/shared/Software/fsl/lib/python3.11/multiprocessing/managers.py", line 256, in serve_client
obj, exposed, gettypeid = id_to_obj[ident]
~~~~~~~~~^^^^^^^
KeyError: '7f280b9f4f90'
Traceback (most recent call last):
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nibabel/loadsave.py", line 101, in load
stat_result = os.stat(filename)
^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/hkcend_hpc/derivatives/nichart_dlmuse-1.0.7/preproc_outputs_Lijun/QE_ses-001/temp_working_dir/s4_dlmuse/sub-QAD140_ses-001_desc-preproc_T1w_DLMUSE.nii.gz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/shared/Software/niproject_env/bin/NiChart_DLMUSE", line 8, in
sys.exit(main())
^^^^^^
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/NiChart_DLMUSE/main.py", line 250, in main
run_pipeline(
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/NiChart_DLMUSE/dlmuse_pipeline.py", line 178, in run_pipeline
apply_relabel_rois(
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/NiChart_DLMUSE/RelabelROI.py", line 94, in apply_relabel_rois
relabel_rois(in_img, roi_map, label_from, label_to, out_img)
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/NiChart_DLMUSE/RelabelROI.py", line 32, in relabel_rois
in_nii = nib.load(in_img)
^^^^^^^^^^^^^^^^
File "/home/shared/Software/niproject_env/lib/python3.11/site-packages/nibabel/loadsave.py", line 103, in load
raise FileNotFoundError(f"No such file or no access: '{filename}'")
FileNotFoundError: No such file or no access: '/home/hkcend_hpc/derivatives/nichart_dlmuse-1.0.7/preproc_outputs_Lijun/QE_ses-001/temp_working_dir/s4_dlmuse/sub-QAD140_ses-001_desc-preproc_T1w_DLMUSE.nii.gz'
Thanks for your support!
Best,
Angel