Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DAR-2639][External] Add data & tests for in-platform model training #872

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

JBWilkie
Copy link
Collaborator

Problem

There are no tests for in-platform model training functionality

Solution

Add data & tests to support testing of darwin-py functionality used in in-platform model training. In addition to this:

  • 1: Re-add a function convert_xyxy_to_bounding_box used by model training
  • 2: Force get_annotations() to read local items from the item name, not the annotation file name

Changelog

(Will appear in release docs)

Copy link

linear bot commented Jun 19, 2024

@@ -339,7 +344,7 @@ def _download_single_slot_from_json_annotation(
image_url = image["url"]
image_filename = image["file_name"]
suffix = Path(image_filename).suffix
stem = annotation_path.stem
stem = Path(annotation.filename).stem
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In cases where there are duplicate item names, the annotation_path.stem will have an _n appended, which will cause darwin-py to fail to find the corresponding item. Therefore, use the item name since this will not have a _n appended for uniqueness

Copy link
Contributor

@dorfmanrobert dorfmanrobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolves model training bugs, phew!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants