Skip to content

Report the annotation indices or line numbers on import failures in YOLO formats #74

Open
@zhiltsov-max

Description

@zhiltsov-max

It would be nice to report the annotation or line numbers in

for line in lines:
try:
annotations.append(
self._load_one_annotation(line.split(), image_height, image_width)
)
except Exception as e:
self._ctx.error_policy.report_annotation_error(e, item_id=item_id)
to simplify troubleshooting for users. Currently only item id and the specific import problem is being reported.

Originally posted by @zhiltsov-max in #70 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions