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

Update utils.py #47

Merged
merged 1 commit into from
Aug 15, 2020
Merged

Update utils.py #47

merged 1 commit into from
Aug 15, 2020

Conversation

Art200696
Copy link
Contributor

While working with CVAT, annotations are being saved as float. Hence python cant interpret them directly as int.

While working with CVAT, annotations are being saved as float. Hence python cant interpret them directly as int.
@alankbi
Copy link
Owner

alankbi commented Aug 14, 2020

Do you get an error with the existing code, as in int(box[0].text) doesn't work? If so, could you share the code as well as provide an example XML file that causes the error? Just so I can get a better feel for what's going on.

@Art200696
Copy link
Contributor Author

'
from detecto.utils import xml_to_csv
import pandas as pd

df = xml_to_csv('../Annotations/')
`

error -

ValueError: invalid literal for int() with base 10: '757.361328125'

000008.xml.zip

@alankbi alankbi merged commit 0a1b305 into alankbi:master Aug 15, 2020
@alankbi
Copy link
Owner

alankbi commented Aug 15, 2020

Merged and released in v1.1.5.

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

Successfully merging this pull request may close these issues.

2 participants