VOC_to_COCO icon indicating copy to clipboard operation
VOC_to_COCO copied to clipboard

最简单的VOC转COCO, 一条指令完整转换

Results 9 VOC_to_COCO issues
Sort by recently updated
recently updated
newest added

您好,我在使用您的代码是,我JPEGImages里有247个图片,ImageSets里不知道放什么所以空着在 然后用默认的100val 100test跑 最后结果train2017.jason是空的 然后python的最后一行如下 100 files copied to /Users/jayhuashi/Desktop/Sub22/xml/xml_val/ The folders are empty, please make sure there are enough 100 file to move 请问会是什么原因导致的呢 感谢

我想转换通过labelImg标注的数据集为coco数据集,这个filename不是数字串,是字母等,在调用get_filename_as_int这个地方就会出错,这里是不是只是赋给每张图一个id,那我手动赋值可以吗

***************************[ Done ! Go check your file ]**************************** Traceback (most recent call last): File "/home/litong/voc_to_coco/VOC_to_COCO/voc_to_coco.py", line 166, in get_filename_as_int return int(filename) ValueError: invalid literal for int() with base 10: ''...

Traceback (most recent call last): File "voc_to_coco.py", line 65, in mkdir(coco_path) File "voc_to_coco.py", line 54, in mkdir os.makedirs(path) File "/usr/lib/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission...

Traceback (most recent call last): File "voc_to_coco.py", line 166, in get_filename_as_int return int(filename) ValueError: invalid literal for int() with base 10: '000609af' During handling of the above exception, another exception...

左上角坐标转时候为什么要减掉1?而且右下角坐标没有减的话,算出来的宽度和高度会多一个像素啊

谢谢你的代码,如果不设置数量,能不能自动选择把全部数据都转换完毕,比如官方原始的VOC2007和VOC2012