-
Notifications
You must be signed in to change notification settings - Fork 185
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
Key error when running panoptic2detection_coco_format.py #10
Comments
--input_json_file "panoptic_train2017.json" Your argument is things only but your segmentation PNG's are for stuff. Perhaps this is the issue? If so set your segmentations_folder to the results of unzipping the panoptic_train2017.zip file. Another guess would be to adjust the popping of the color category attribute here:
The key error at this point in time indicates to me there is no need to remove the 'color' key of the current category dictionary. Thus I wrapped it in a try / except block. |
Thank you very much. I was indeed reading from the wrong segmentation folder. |
i meet another problem int
display error:
i use python3.5 ; i have looked up some information and didn't solve it ; can you help ? thanks! |
I'm not sure about this but try json.dumps(d_coco_). dumps is for strings I believe: https://realpython.com/python-json/ |
|
When running the script with the following arguments:
I get the following error:
I tried to remove the [0] in the line
segm_info['segmentation'] = COCOmask.encode(np.asfortranarray(mask))[0]
which resulted inlater on. Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: