Error while running the training model IsADirectoryError: [Errno 21] Is a directory:
DarshGondalia opened this issue · 0 comments
Hi,
I am getting the error statement:
Traceback (most recent call last):
File "Train_YOLO.py", line 268, in
callbacks=frozen_callbacks,
File "/Users/DarshGondalia/Desktop/TrainYourOwnYOLO/Utils/Train_Utils.py", line 194, in data_generator
image, box = get_random_data(annotation_lines[i], input_shape, random=True)
File "/Users/DarshGondalia/Desktop/TrainYourOwnYOLO/2_Training/src/keras_yolo3/yolo3/utils.py", line 65, in get_random_data
image = Image.open(line[0])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PIL/Image.py", line 2968, in open
fp = builtins.open(filename, "rb")
IsADirectoryError: [Errno 21] Is a directory: '/Users/DarshGondalia/Desktop/TrainYourOwnYOLO/'
I have no idea how to solve it. The folder structure is the same as this. Please help.