YOLOv3_TensorFlow icon indicating copy to clipboard operation
YOLOv3_TensorFlow copied to clipboard

Can't run parse_voc_xml.py

Open UsernameIsName-bot opened this issue 5 years ago • 2 comments

(YOLOV3 TENSORFLOW) C:\Users\Name\YOLOv3_TensorFlow\misc>python parse_voc_xml.py Traceback (most recent call last): File "parse_voc_xml.py", line 94, in <module> gen_train_txt('train.txt') File "parse_voc_xml.py", line 79, in gen_train_txt img_names = open(path, 'r').readlines() FileNotFoundError: [Errno 2] No such file or directory: '/data/VOCdevkit/VOC2007\\ImageSets/Main/trainval.txt'

I ran the above .py file and kept receiving this issue and can't seem to rectify it. I am new to this and would appreciate if someone could be pointing out what i did wrong.

For clarification, I am training my own dataset with .xml annotations and i set it up to be the same as the VOC2007 format : C:\Users\Name\YOLOv3_TensorFlow\misc\data\VOCdevkit\VOC2007

The VOC 2007 file has sub-folders Annotations, ImageSets and JPEGImages, in which i have put the relevant content in as per the VOC 2007 format. In addition, I have around 400 annotations in which they are named Object (1).xml, Object (2).xml , etc.

UsernameIsName-bot avatar Dec 18 '19 07:12 UsernameIsName-bot

It looks like u don't have trai.txt?

aluds123 avatar Feb 25 '20 02:02 aluds123

I have encountered the same problem. Have you solved it?

PureKiki avatar Mar 27 '22 02:03 PureKiki