Skip to content

TypeError: Expected bytes, got list #40

@z3742705z

Description

@z3742705z

Hey @waspinator , thanks for this work. I have a problem about the decoding of RLE.
I set 'is_crowd' to 1 to make RLE format in shapes_to_coco.py. But I use MaskRCNN from facebookresearch and have a bug related to your program.

File "C:\Users\DTMLLUAdminUser\Anaconda3\envs\detectron2\lib\site-packages\pycocotools\mask.py", line 91, in decode
return _mask.decode([rleObjs])[:,:,0]
File "pycocotools_mask.pyx", line 146, in pycocotools._mask.decode
File "pycocotools_mask.pyx", line 128, in pycocotools._mask._frString
TypeError: Expected bytes, got list

do you have any idea or what should I do to finish this bug. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions