Line 196 in train.py creates a list of image paths
eval_img_paths = [os.path.join('./images/',s) for s in eval_img_names]
but since the./ images folder contains two subfolders (readme and tiny_val) they will be included in the list. This will cause an IsADirectoryError from PIL when Image.open(img_path) is called later.
Line 196 in train.py creates a list of image paths
eval_img_paths = [os.path.join('./images/',s) for s in eval_img_names]
but since the./ images folder contains two subfolders (readme and tiny_val) they will be included in the list. This will cause anIsADirectoryError
from PIL whenImage.open(img_path)
is called later.