Skip to content

Dataset export as Ultralytics-YOLO-Segmentation-1.0 doesn't respect annotation grouping. #10182

@Abdul-Mukit

Description

@Abdul-Mukit

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

Situation:

  1. Multiple polygons are grouped together during annotation. Keyboard shortcut: g.
  2. Export the dataset as Ultralytics-YOLO-Segmentation-1.0 format.

Current Behaviour:
Grouping is not respected in the exported .txt label file. Each polygon, irrespective of its grouping, is exported as a separate annotation.

Expected Behavior

All polygons from the same group have to be joined together, using the function merge_multi_segment: https://github.com/ultralytics/ultralytics/blob/9c927162166247db178539e0c9287775090bbcef/ultralytics/data/converter.py#L529

A group of polygons should be exported as one annotation/polygon in the .txt label file.

Possible Solution

Adopt merge_multi_segment: https://github.com/ultralytics/ultralytics/blob/9c927162166247db178539e0c9287775090bbcef/ultralytics/data/converter.py#L529

Context

No response

Environment

CVAT Server version: 2.44.2
CVAT UI version: 2.44.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions