Skip to content

[BUG] load_annotations from CVAT "text" attribute treated as "int" when using only digits #7221

@aguevaracaprio

Description

@aguevaracaprio

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

  1. Create a CVAT schema with an attribute of type text
  2. Create an annotation job an input text with all-digit characters but adding leading zeros (e.x. 001)
  3. Use load_annotations function to download the new labels into the dataset
  4. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions