Skip to content

Conversation

@kozlov721
Copy link
Collaborator

Purpose

Simplifies the creation of splits.

Specification

  • Removes deprecated parameters definitions and ratios from BaseDataset.make_splits
  • Cleaned up LuxonisDataset.make_splits

Dependencies & Potential Impact

Breaking change by removing parameters from make_splits that have been mark as deprecated for the last 2 releases.

@github-actions github-actions bot added the enhancement New feature or request label Feb 14, 2025
@codecov
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.08%. Comparing base (72c4f1b) to head (de4d362).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #247      +/-   ##
==========================================
+ Coverage   96.03%   96.08%   +0.05%     
==========================================
  Files          94       94              
  Lines        5064     5057       -7     
==========================================
- Hits         4863     4859       -4     
+ Misses        201      198       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kozlov721 kozlov721 marked this pull request as ready for review February 14, 2025 21:48
@kozlov721 kozlov721 requested a review from a team as a code owner February 14, 2025 21:48
@kozlov721 kozlov721 requested review from conorsim, klemen1999 and tersekmatija and removed request for a team February 14, 2025 21:48
new_splits = self._make_definition_splits(splits) # type: ignore

for split, uuids in new_splits.items():
old_splits[split].extend(uuids)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should only extend if replace_old_splits=False no? Otherwise if split_type="files" wouldn't we in this case now get one image in two times in the splits (once from older split and once from newer one)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants