Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS COCO format #1

Closed
abushattal1 opened this issue Nov 9, 2021 · 2 comments
Closed

MS COCO format #1

abushattal1 opened this issue Nov 9, 2021 · 2 comments

Comments

@abushattal1
Copy link

I am trying to convert from pascal VOC to COCO but it show me the following error that my image should be integer. any idea??
Number of xml files: 2675
Traceback (most recent call last):
File "voc2coco/voc2coco.py", line 42, in get_filename_as_int
return int(filename)
ValueError: invalid literal for int() with base 10: '11000000568658_jpg.rf.e84f5b4e20ba7065cfcdc0b1df1e8177'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "voc2coco/voc2coco.py", line 160, in
convert(xml_files, args.json_file)
File "voc2coco/voc2coco.py", line 91, in convert
image_id = get_filename_as_int(filename)
File "voc2coco/voc2coco.py", line 45, in get_filename_as_int
(filename))
ValueError: Filename 11000000568658_jpg.rf.e84f5b4e20ba7065cfcdc0b1df1e8177 is supposed to be an integer.
Number of xml files: 996
Traceback (most recent call last):
File "voc2coco/voc2coco.py", line 42, in get_filename_as_int
return int(filename)
ValueError: invalid literal for int() with base 10: '11000000455228_jpg.rf.94eda45f93fa79a87a553738bd85dbbb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "voc2coco/voc2coco.py", line 160, in
convert(xml_files, args.json_file)
File "voc2coco/voc2coco.py", line 91, in convert
image_id = get_filename_as_int(filename)
File "voc2coco/voc2coco.py", line 45, in get_filename_as_int
(filename))
ValueError: Filename 11000000455228_jpg.rf.94eda45f93fa79a87a553738bd85dbbb is supposed to be an integer.

@Kazuhito00
Copy link
Owner

"voc2coco.py" currently only supports integer filenames.
Please correct the file name or correct the code by referring to the following PR.
voc2coco PR#2 Remove integer requirement

@Kazuhito00
Copy link
Owner

It will close because time has passed.
If you have another problem, please create the issue again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants