Skip to content

fix(label-file): align fractional Mask bounds between read validation and export #2479

Description

@wkentaro

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.

Metadata

Metadata

Assignees

Labels

ready-for-agentissue: Fully specified, ready for an AFK agenttype: bugissue: Reporting a defect to fix

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions