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

list index out of range #1445

Open
NLPgameplayer opened this issue May 11, 2023 · 0 comments
Open

list index out of range #1445

NLPgameplayer opened this issue May 11, 2023 · 0 comments
Assignees

Comments

@NLPgameplayer
Copy link

Run'nnUNetv2_predict -i /home/cz/model/nnUNet-master/DATASET/nnUNet_raw/nnUNet_raw_data/Task04_Hippocampus/imagesTs/ -o /home/cz/model/nnUNet-master/DATASET/nnUNet_raw/nnUNet_raw_data/Task04_Hippocampus/inferTs/ -d 4 -c 3d_fullres
'debug assertion failed:
There are 1 cases in the source folder
I am process 0 out of 1 (max process ID is 0, we start counting with 0!)
There are 0 cases that I would like to predict
Exception in background worker 0:
list index out of range
Traceback (most recent call last):
File "/home/cz/anaconda3/envs/nnUnet/lib/python3.9/site-packages/batchgenerators/dataloading/multi_threaded_augmenter.py", line 46, in producer
item = next(data_loader)
File "/home/cz/anaconda3/envs/nnUnet/lib/python3.9/site-packages/batchgenerators/dataloading/data_loader.py", line 126, in next
return self.generate_train_batch()
File "/home/cz/model/nnUNet-master/nnunetv2/inference/data_iterators.py", line 42, in generate_train_batch
files = self._data[idx][0]
IndexError: list index out of range
using pin_memory on device 0
Traceback (most recent call last):
File "/home/cz/anaconda3/envs/nnUnet/bin/nnUNetv2_predict", line 33, in
sys.exit(load_entry_point('nnunetv2', 'console_scripts', 'nnUNetv2_predict')())
File "/home/cz/model/nnUNet-master/nnunetv2/inference/predict_from_raw_data.py", line 600, in predict_entry_point
r = predict_from_raw_data(args.i,
File "/home/cz/model/nnUNet-master/nnunetv2/inference/predict_from_raw_data.py", line 221, in predict_from_raw_data
return predict_from_data_iterator(data_iterator, network, parameters, plans_manager, configuration_manager, dataset_json,
File "/home/cz/model/nnUNet-master/nnunetv2/inference/predict_from_raw_data.py", line 250, in predict_from_data_iterator
for preprocessed in data_iterator:
File "/home/cz/anaconda3/envs/nnUnet/lib/python3.9/site-packages/batchgenerators/dataloading/multi_threaded_augmenter.py", line 204, in next
item = self.__get_next_item()
File "/home/cz/anaconda3/envs/nnUnet/lib/python3.9/site-packages/batchgenerators/dataloading/multi_threaded_augmenter.py", line 189, in __get_next_item
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

what should I do?

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

3 participants