Hello everyone, I can't find a function to calculate the intersection by union (IoU) for polygons, for example from the coco format 8 coordinates (4 by 2) polygon closure adapted for Tenserflow without side libraries purely for Tenserflow, if anyone has i

Hello everyone, I can’t find a function to calculate the intersection by union (IoU) for polygons, for example from the coco format 8 coordinates (4 by 2) polygon closure adapted for Tenserflow without side libraries purely for Tenserflow, if anyone has i

Hi @Javhar_Abdulatipov ,

We can implement this functionality using TensorFlow operations.

To use this with COCO format polygons, you would need to reshape your input data to match the expected format (4x2 tensor for each polygon).

Please find the Gist Reference ,

Thank You .