amazon-science/polygon-transformer

Generation of multi-object sequence label

big-feather opened this issue · 2 comments

Dear Author, I would like to know how to generate sequence labels with intervals when there are multiple objects in the mask or a single object with multiple disjointed areas?If it's convenient, could you please point out which part of the code implements this?

Hi, we currently do support the scenario where a single object has multiple disjointed areas, and the polygons for each area are concatenated with the separator token in between.

polygon_string = " <separator> ".join(polygon_strings)

Thanks for your quick reply!