[WIP] migration to structured configuration classes#3172
Closed
arashsm79 wants to merge 2 commits intoDeepLabCut:mainfrom
Closed
[WIP] migration to structured configuration classes#3172arashsm79 wants to merge 2 commits intoDeepLabCut:mainfrom
arashsm79 wants to merge 2 commits intoDeepLabCut:mainfrom
Conversation
- Introduced new configuration classes for inference, logging, model, pose, project, runner, and training settings. - Refactored data loading mechanisms to utilize new configuration structures. - Moved the multithreading and compilation options in inference configuration to the config module. - Typed configuration for logging. - Updated dataset loaders to accept model configurations directly or via file paths.
d57c7af to
fe59709
Compare
This was referenced Jan 29, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Edit (by @deruyter92): this PR was split into several sub-PRs to facilitate a smooth transition. An overview is kept in #3193.
Summary
Why Typed & Structured Configuration (OmegaConf + Pydantic)
Strong guarantees for correctness
Static typing improves developer velocity
Hierarchical, composable configuration
Cleaner overrides and defaults.
Structured configs make it easier to define parameter ranges for tuning and automation.
Config schemas can be versioned and evolve safely over time while preserving backward compatibility.
Full, validated configuration can be saved alongside results, which improves reproducibility and transparency.
Builds on well-maintained, widely adopted libraries (OmegaConf, Pydantic).
Resources for knowing more about structured configs:
Future Work
More things that could be done ( @deruyter92 ):
config.yamlare reflected in the model's configuration undermetadataas well.deeplabcut/pose_estimation_pytorch/data/base.py.