Right now it takes a couple of minutes to load in all of the images and compute polygons for the various annotated masks. I should look into a vectorized version of the polygon function that will speed this computation up.
I should also see if ChatGPT has some simple improvements to make that could speed up my code.
Right now it takes a couple of minutes to load in all of the images and compute polygons for the various annotated masks. I should look into a vectorized version of the
polygon
function that will speed this computation up.I should also see if ChatGPT has some simple improvements to make that could speed up my code.