so i have a dataset, the goal is to move 80% images along with their annotations in .txt format in the training folder and 20% images and their annotations in .txt format in the test folder. It was possible for the 80% images and their annotations to move to the train folder, but when I do it for the test folder, i get this error-
after getting this error, i checked the test folder and 000001.jpg was there along in there, without it's annotation in .txt format. I confirmed by redoing the entire process that it happens for any arbitrary image when it's this part of the step. the image in question is moved to the test folder without its annotation and it stops there and gives an error that so and so image has a key error
#Problems moving 20% images into test folder for object detection model (yolov5)
1 messages · Page 1 of 1 (latest)
That's indeed strange! Are you sure that there exists an image named "000001.jpg"? (because key errors on pandas dataframes only occur when you're trying to retrieve a column/row that doesn't exist)
Maybe you're missing or adding a zero in the image name?