* fix(coco): preserve segmentation in as_coco() round-trip (#2285) * fix(coco): address Copilot review — normalize flat polygon lists, tighten test assertions * fix(coco): type annotation, config constant, merge-compat, lint fixes * test(coco): add two-polygon and RLE round-trip tests * fix(tests): update expected_results for always-store coco_raw_segmentation * fix(coco): use COCO_RAW_SEGMENTATION key in export fallback * fix(coco): adjust mask_bool assignment to ensure proper usage in iscrowd logic * test: simplify COCO segmentation regression cases * fix(coco): add type annotation for raw_segs to ensure clarity * test(coco): improve docstring and add comments for segmentation round-trip validation --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jirka <6035284+Borda@users.noreply.github.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com> |
||
|---|---|---|
| .. | ||
| formats | ||
| __init__.py | ||
| test_core.py | ||
| test_utils.py | ||