Open FranklynJey opened 8 months ago
@jbwang1997 do you have a guess what causes the projection error. It might also be interesting if it is a general error which also appears during the training process or if it solely appears for browse_dataset. I might look into that the next days :)
Describe the bug
When visualizing coco panoptic dataset with _browsedataset.py the overlay results include errors. To be more specific: While the RGB image is displayed correctly, the segmentation masks have a horizontal pixel offset. In some images it becomes more severe than in others.
We also tested it with a custom dataset and had the impression that the error becomes more severe when high-resolution imagea are used. For reproductive purpose, we created the examples using plain coco panoptic and used unmodified openmmlab-scripts.
Reproduction
Projection using browse_dataset.py We run browse_dataset.py using the coco_panoptic.py config file. Both scripts were unchanged, except the path to the dataset. We set the output-dir flag. Using the default settings, both examples can be found within the first 30 rendered results. The unique image_ids are 293802 and 483108.
The command
For both examples, the horizontal pixel offsets between different segmentation masks are visible as white regions, e.g. white region between legs of skater. These errors are not part of the actual dataset. In order to show it we use the visualization script from the coco repo.
Reference projection using original coco scripts For the reference projection, we used the original coco panoptic visualization script. See panopticapi repo: visualization.py (https://github.com/cocodataset/panopticapi/blob/master/visualization.py) To directly access the two examples, you can add the following lines instead of a random picked example
The rendering using the original coco visualizer shows that the dataset itself does not have the segmentation artifacts: (All samples are taken from and belong to the coco dataset https://cocodataset.org/#home)
Further Questions
Did you make any modifications on the code or config? Did you understand what you have modified?
No changes
What dataset did you use?
coco panoptic, to be more specific panoptic_train2017.json
Environment
Please run
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here.