Skip to content

Assign color when only masks are initialized (without bbox) #5374

Closed
@antoinedelplace

Description

@antoinedelplace

Here only the option where the boxes are initialized works.
The option where the masks are initialized is not dealt with.

_DetectedInstance(classes[i], boxes[i], mask_rle=None, color=colors[i], ttl=8)

File "/home/ubuntu/doc/code/MIMO-unofficial/venv/lib/python3.10/site-packages/detectron2/utils/video_visualizer.py", line 104, in <listcomp>
    _DetectedInstance(classes[i], boxes[i], mask_rle=None, color=colors[i], ttl=8)
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid/unrelatedunrelated to this project or invalid type of issuesneeds-more-infoMore info is needed to complete the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions