def random_sample_generator(x_dir, y_dir, image_names, batch_size, bit_depth, dim1, dim2, rescale_labels):
do_augmentation = True
# get image names
print('Training with',len(image_names), 'images.')
# get dimensions right -- understand data set
n_images = len(image_names)
ref_img = skimage.io.imread(o**strong text**s.path.join(y_dir , image_names[0]))
if(len(ref_img.shape) == 2):
gray = True
else:
gray = False
Ошибка:
File "C:\users\admin\utils\data_provider.py",line 106, in random_sample_generator
ref_img = skimage.io.imread(os.path.join(y_dir,image_names[0]))
IndexError: list index out of range
Кто-нибудь может сказать мне, как я могу решить эту проблему?