Update default configuration values for improved training #375
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates several default configuration values across the codebase to provide better out-of-box training behavior and align with best practices for pose estimation training.
Configuration Changes
DataLoaderConfig
1→4TrainerConfig
10→1000→NoneDataConfig
False→Truedata_mapperuse_augmentations_trainbased on augmentation argsTruefor cleaner behaviorModelConfig
15.0→5.0Files Changed
sleap_nn/config/data_config.py- Updated defaults and removed conditional logicsleap_nn/config/model_config.py- Updated ClassMapConfig sigmasleap_nn/config/trainer_config.py- Updated batch_size, max_epochs, seed, and all docstringsBenefits
Backwards Compatibility
These changes only affect default values. All existing configurations with explicit values will continue to work as before. Users can override any of these defaults through their config files.
Testing
🤖 Generated with Claude Code