// url = "http://host.robots.ox.ac.uk:8080/eval/downloads/"
// tar_filename = "VOC2012test.tar"
print("Unfinished API, 2012 test JPEG and Annotation are not matched !")
exit()
elif dataset == "2007":
url = "http://host.robots.ox.ac.uk/pascal/VOC/voc2007/"
tar_filename = "VOCtrainval_06-Nov-2007.tar"
extracted_filename = "VOC2007"
After Change
for ann in imgs_ann_file_list:
ann = os.path.split(ann)[-1].split(".")[0]
for im in imgs_file_list:
if ann in im:
imgs_file_list_new.append(im)
break
imgs_file_list = imgs_file_list_new
print("[VOC] keep %d images" % len(imgs_file_list_new))
////======== parse XML annotations