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

[BUG] view.annotate with label_type="instances" is creating a task on CVAT with type any (instead of mask) #4910

Open
1 of 3 tasks
piercus opened this issue Oct 10, 2024 · 0 comments
Labels
bug Bug fixes

Comments

@piercus
Copy link

piercus commented Oct 10, 2024

Describe the problem

When using FiftyOne to create an instance CVAT job (on app.cvat.ai) the resulting job is created with a "type": "any" instead of a "type": "mask".

Code to reproduce issue

import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("coco-2017", split="validation")
anno_key = "test_annotation"
view = dataset.limit(3)
view.annotate(
    anno_key,
    label_type="instances",
    label_field="detections",
    classes=["label"],
    task_name="My task"
)

Go in CVAT :

  • click on "Tasks"
  • Open the Task
  • Click on "Raw"
  • The type is "any"
Capture d’écran 2024-10-10 à 15 00 19

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 22.04): Linux
  • Python version (python --version): Python 3.10.14
  • FiftyOne version (fiftyone --version): FiftyOne v1.0.0, Voxel51, Inc.
  • FiftyOne installed from (pip or source): pip

Other info/logs

Seems to be related to

{"name": name, "attributes": list(attributes.values())}

On my understanding, we would need to have something like

{"name": name, "type": label_type, "attributes": list(attributes.values())}

Willingness to contribute

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
@piercus piercus added the bug Bug fixes label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant