FileNotFoundError: [Errno 2] No such file or directory: '/media/rakshit/tank/Dataset/UCO/annotations/annotations_head/negatives20_heads.txt'
The annotation text files have a missing "s" in them.
Hope the following code helps you:
import os
for i in range(0, 30):
str_old = 'negative{:02}_heads.txt'.format(i)
str_new = 'negatives{:02}_heads.txt'.format(i)
os.system("mv {} {}".format(str_old, str_new))
FileNotFoundError: [Errno 2] No such file or directory: '/media/rakshit/tank/Dataset/UCO/annotations/annotations_head/negatives20_heads.txt'
The annotation text files have a missing "s" in them.
Hope the following code helps you: