-
Notifications
You must be signed in to change notification settings - Fork 733
[BUG] load_annotations from CVAT "text" attribute treated as "int" when using only digits #7221
Copy link
Copy link
Open
Labels
Description
Describe the problem
When using CVAT as backend to download "text" attributes, FiftyOne automatically treats text that is digit-only as number/int type. This is causing issues when annotating text that begins with 0. For example, an objected annotated as "0001" -> 1. CVAT does export the "text" attribute correctly with all characters but FiftyOne seems to automatically treat it as a number
Not sure if this is a bug or expected behavior, but I would want to know how we can prevent this from happening as this affects our labeling process
Code to reproduce issue
- Create a CVAT schema with an attribute of type text
- Create an annotation job an input text with all-digit characters but adding leading zeros (e.x. 001)
- Use load_annotations function to download the new labels into the dataset
- Verify that the label attribute is an int and leading zeros have been removed
System information
- OS Platform and Distribution Linux Ubuntu 24.04.3 LTS)
- Python version 3.10
- FiftyOne version (
fiftyone --version): v1.10.0 - FiftyOne installed from (pip or source): pip
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
- Yes. I can contribute a fix for this bug independently
- Yes. I would be willing to contribute a fix for this bug with guidance
from the FiftyOne community - No. I cannot contribute a bug fix at this time
Reactions are currently unavailable