Traceback (most recent call last):


 "exec.py", line 190, in <module>

test(logger)


 "exec.py", line 126, in test

test_results_list = test_predictor.predict_test_set(batch_gen, return_results=True)


 "/data2/project/keras/medicaldetectiontoolkit/predictor.py", line 149, in predict_test_set

batch = next(batch_gen['test'])


 "/data2/project/keras/batchgenerators/batchgenerators/dataloading/data_loader.py", line 123, in __next__

return self.generate_train_batch()


 "experiments/brats_tc/data_loader.py", line 381, in generate_train_batch

patch_crop_coords_list = dutils.get_patch_crop_coords(data, self.patch_size)


 "/data2/project/keras/medicaldetectiontoolkit/utils/dataloader_utils.py", line 157, in get_patch_crop_coords

n_patches = int(np.ceil(img.shape[dim] / patch_size[dim]))
IndexError: list index out of range

Traceback (most recent call last):


 "/home/hunter/miniconda3/lib/python3.8/site-packages/xarray/backends/netCDF4_.py", line 98, in _getitem

array = getitem(original_array, key)


 "/home/hunter/miniconda3/lib/python3.8/site-packages/xarray/backends/common.py", line 53, in robust_getitem

return array[key]


 "src/netCDF4/_netCDF4.pyx", line 4397, in netCDF4._netCDF4.Variable.__getitem__


 "/home/hunter/miniconda3/lib/python3.8/site-packages/netCDF4/utils.py", line 467, in _out_array_shape

c = count[..., i].ravel()[0] # All elements should be identical.
IndexError: index 0 is out of bounds for axis 0 with size 0
