Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Expected bytes, got list #40

Open
z3742705z opened this issue Apr 12, 2021 · 0 comments
Open

TypeError: Expected bytes, got list #40

z3742705z opened this issue Apr 12, 2021 · 0 comments

Comments

@z3742705z
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant