[WIP] Final migration to configuration version 1: structured and validated configs#3198
Draft
deruyter92 wants to merge 45 commits intomainfrom
Draft
[WIP] Final migration to configuration version 1: structured and validated configs#3198deruyter92 wants to merge 45 commits intomainfrom
deruyter92 wants to merge 45 commits intomainfrom
Conversation
…onverter_config.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- reading breaks for corrupted yaml - added tests for prefered behavior that is currently not implemented (yaml safeloading and validating config keys)
Part 1. of migration to typed configs, see issue #3193
This mixin provides methods for:
- Loading configurations from dictionaries or YAML files
- Validating configuration data against pydantic models
- Converting configurations to dictionaries
- Pretty printing configuration data
add imports from utils
- 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.
(The fields are kept identical to old multianimal project configs for now) move ProjectConfig to deeplabcut/core/config
…correct TypeAdapter usage)
The return value should be the dictionary, not the instantiated transforms
Part 2. of migration to typed configs, see issue #3193
17 tasks
2d3ef49 to
b5f2fdc
Compare
b5f2fdc to
fdfec16
Compare
…reading from yaml.
The head_cfg (a part of PoseConfig) was used for dumping modules. This is not supported for typed configs. The container is now replaced with a plain dict type instead of config.
Part 3. of migration to typed configs, see issue #3193
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.
This PR aims to implement the features proposed in #3193, and will be the final PR for merging all changes from the feature branch, implemented in the smaller PRs #3190, #3191, #3194, etc..
[A more elaborate description will added]