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

Detection to Panoptic Segmenetaion Converter creates blank images and no segmenetation coordinates #35

Open
animikhaich opened this issue Jun 10, 2020 · 1 comment

Comments

@animikhaich
Copy link

animikhaich commented Jun 10, 2020

In an attempt to convert COCO detection annotations to Panoptic Segmentation, I am getting the following output:

  • The Generated PNG images are nothing but black images, no segments are visible
  • The COCO Panoptic Annotation Generated JSON contains "segments_info": [] (Empty List) for all images.

Command used to convert:

python converters/detection2panoptic_coco_format.py \
  --input_json_file /media/Data/Documents/Python-Codes/data/reading_order_dataset/complex/textline/via_export_coco.json \
  --output_json_file /media/Data/Documents/Python-Codes/data/reading_order_dataset/complex/textline/coco_panoptic.json

I have attached a sample of the files below:

  • Input COCO Detection JSON with BBox and Segmentation Coordinates:
    image
  • Output Panoptic Segmentation JSON with empty "segments_info":
    image
  • Output generated Sample PNG which is completely blank black image:
    001

Please let me know what I am doing wrong and how to fix this.

@ghost
Copy link

ghost commented Jun 10, 2020

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