Skip to content

Brush Toolbox Item Appearance Behavior Inconsistent #217

@joshua-dean

Description

@joshua-dean

The "Brush Tool" Toolbox item automatically appears when the "polygon" mode is selected, however when switching to a subtask where "polygon" is the default, the toolbox item does not automatically appear.

This is problematic for subtasks with only the "polygon" annotation mode, as there is not a way to coerce the toolbox item into appearing without manually passing a toolbox configuration.

Steps to reproduce:

  1. Change the single-class.html demo subtasks to the following:
let subtasks = {
    "car_detection": {
        "display_name": "Car Detection",
        "classes": [
            {
                "name": "Car",
                "color": "orange",
                "id": 10
            }
        ],
        "allowed_modes": ["bbox", "polygon", "contour"],
        "resume_from": null,
        "task_meta": null,
        "annotation_meta": null
    },
    "car_detection2": {
        "display_name": "Car Detection 2",
        "classes": [
            {
                "name": "Car",
                "color": "orange",
                "id": 10
            }
        ],
        "allowed_modes": ["polygon"],
        "resume_from": null,
        "task_meta": null,
        "annotation_meta": null
    },
};
  1. Launch the demo
  2. In the "Car Detection" subtask, select anything but the "polygon" mode
  3. With to the "Car Detection 2" subtask
  4. Observe the lack of the brush toolbox item

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