This was generated by AI during triage.
Found while reviewing PR #2473 (issue #2453). The read-boundary validation added there rounds fractional Mask bounds, but the export helpers in the label-file module truncate them. The two paths should share one convention. PR #2464 (issue #2336) already settled on int(round(...)) for AI mask bboxes in _automation; the label-file export helpers should follow the same rule so a saved and reloaded Mask keeps identical bounds.
Origin: review finding on PR #2473, left out of that PR because it sits outside the GUI loading boundary.
Found while reviewing PR #2473 (issue #2453). The read-boundary validation added there rounds fractional Mask bounds, but the export helpers in the label-file module truncate them. The two paths should share one convention. PR #2464 (issue #2336) already settled on
int(round(...))for AI mask bboxes in_automation; the label-file export helpers should follow the same rule so a saved and reloaded Mask keeps identical bounds.Origin: review finding on PR #2473, left out of that PR because it sits outside the GUI loading boundary.