YOSO icon indicating copy to clipboard operation
YOSO copied to clipboard

Visualization colors can be out of range 0-1

Open uahic opened this issue 1 year ago • 1 comments

When drawing the result of the panoptic segmentation (draw_panoptic_seg_predictions), then one of the subsequent calls within that function call -> YOSO/detectron2/utils/visualizer.py line 857 the color can numerically be > 1. For example in my case: (0.9999999999999998, 1.0000000000000002, 1.0000000000000002) which in turn leads matplotlib to crash.

uahic avatar Jun 26 '23 16:06 uahic