Converting a segmentation mask(691 x 1024 where pixel-intensity = segmentation class) to series of run-length encoded masks(label-studio format) was taking forever(about 95 seconds with 4 segmentation classes).
After improving the performance of encode_rle, the same conversion takes 174ms
Converting a segmentation mask(691 x 1024 where pixel-intensity = segmentation class) to series of run-length encoded masks(label-studio format) was taking forever(about 95 seconds with 4 segmentation classes).
After improving the performance of encode_rle, the same conversion takes 174ms
Here's the performance differences with timeit: