-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
json to dataset not working #588
Comments
I guess you're using gray or RGBA image instead of RGB, right? |
Please refer to the examples. |
My utils.img_b64_to_arr command gave a (w,h,4) image, with the last dimension just being the type (uint8 in my case). So I was working with colored images, but solved it by throwing away that last "dimension":
Now it seems to be working fine. I guess it`s the same type of problem as using gray images. Thanks for the responses! |
I get an error when running labelme_json_to_dataset on my json-files.
File "...\anaconda3\envs\labelme\lib\site-packages\imgviz\color.py", line 21, in rgb2gray
assert rgb.shape[2] == 3, 'rgb shape must be (H, W, 3)'
import labelme also not working. (as expected)
So I guess my question: how to get png masks from the json files generated by labelme ?
The text was updated successfully, but these errors were encountered: