CasiaFan / Dataset_to_VOC_converter

Scripts to convert datasets (Caltech pedestrian, MS COCO, HDA) to PASCAL VOC format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

line 69 error

rejeena opened this issue · comments

  • I made the path for the same name with the code and downloaded instance_train2014.json already.

  • and run
    "python anno_coco2voc.py --anno_file /startdt_data/COCO/dataset/annotations/instances_train2014.json \ --type instance \ --output_dir /startdt_data/COCO/dataset/instance_train_annotation"

  • But I got the following error messages.

    File "anno_coco2voc.py", line 69
    print "Formating instance xml file {} done!".format(name)
    ^
    SyntaxError: invalid syntax

How to fix it?
Thank you for uploading "convert dataset to VOC annotation format"
Regards,

this is python version 3 print issue
just fix it print ("Formating instance xml file {} done!".format(name))