Skip to content

Generate colors from random color palette in draw_bounding_boxes #4528

@oke-aditya

Description

@oke-aditya

🚀 The feature

The current default white color looks bad. Maybe we can generate colors from palette as we do in drawing masks?

Motivation, pitch

It should be simple tweak to _generate_color_palette to pass num_boxes and get a List of RGB values. Instead of List[Tensor]. The fix is simple and that can be passed to get RGB colors.

Alternatives

Users can anyway use color="white" to get white boxes.

Additional context

It's simple issue and good-first. We can probably wait for some new contributor 😃 to join.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions