Skip to content

Conversation

@gitttt-1234
Copy link
Collaborator

This PR fixes seeding in the training pipeline. Previously, the seed parameter in the config was defined but never applied. We now explicitly set the seed when provided. In multi-GPU setups, if validation labels are missing, we default the seed to 42 during train/val splitting to ensure all workers use the same split.

@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

❌ Patch coverage is 72.41379% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.61%. Comparing base (ff91433) to head (3072ec9).
⚠️ Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
sleap_nn/training/model_trainer.py 71.42% 8 Missing ⚠️

❌ Your patch status has failed because the patch coverage (72.41%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
- Coverage   95.28%   93.61%   -1.68%     
==========================================
  Files          49       49              
  Lines        6765     6921     +156     
==========================================
+ Hits         6446     6479      +33     
- Misses        319      442     +123     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gitttt-1234 gitttt-1234 merged commit 55ac9c3 into main Sep 17, 2025
7 of 8 checks passed
@gitttt-1234 gitttt-1234 deleted the divya/fix-seed branch September 17, 2025 17:06
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