VOC_to_COCO icon indicating copy to clipboard operation
VOC_to_COCO copied to clipboard

ValueError: Filename is supposed to be an integer.

Open li-source opened this issue 4 years ago • 3 comments

[ 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: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/litong/voc_to_coco/VOC_to_COCO/voc_to_coco.py", line 266, in convert(xml_val_files, coco_json_annotations + 'val2017.json') File "/home/litong/voc_to_coco/VOC_to_COCO/voc_to_coco.py", line 209, in convert image_id = get_filename_as_int(filename) File "/home/litong/voc_to_coco/VOC_to_COCO/voc_to_coco.py", line 168, in get_filename_as_int raise ValueError("Filename %s is supposed to be an integer." % (filename)) ValueError: Filename is supposed to be an integer.

Process finished with exit code 1

li-source avatar Apr 17 '20 09:04 li-source

我也是同样的错误,是不是这个只能支持那种000001.jpg这样子名称的数据集

StephenZhao1 avatar Dec 09 '20 08:12 StephenZhao1

same error.. any solution??

PrakharPrashantSingh avatar May 10 '22 08:05 PrakharPrashantSingh

get_filename_as_int,因为这一句,所以图片名字只能是数字

ShuShuai163 avatar May 24 '22 05:05 ShuShuai163