feat(config): implement hierarchical config system with Hydra-compatible YAMLs, task/experiment configs, and CLI/env override support for StreetScene by cto-new[bot] · Pull Request #2 · Tingelam/DeepLearningExamples · GitHub
feat(config): implement hierarchical config system with Hydra-compatible YAMLs, task/experiment configs, and CLI/env override support for StreetScene - #2
Implement a hierarchical configuration management system for StreetScene using OmegaConf/Hydra-style YAMLs. Add task-level and experiment configs, a CLI entry point to merge/validate overrides, and automatic resolution artifact saving to improve reproducibility.
Details
Introduced ConfigManager in PyTorch/StreetScene/src/common/config.py to load defaults, task configs, and experiment configs; apply CLI and environment overrides; and produce a resolved config artifact.
Added configs:
defaults.yaml
tasks/detection/pedestrian.yaml
tasks/detection/vehicle.yaml
tasks/classification/vehicle.yaml
experiments/baseline.yaml
experiments/large_scale.yaml
Implemented CLI entry point scripts/run_experiment.py to merge configs, apply CLI/env overrides, validate required fields, and emit a resolved YAML artifact under outputs/.
Implemented environment override handling using APP_ prefix with nested keys using double underscores, with safety checks to avoid unknown keys leading to spurious fields.
Ensured resolved configs are stored for reproducibility with a run-name derived artifact.
Updated documentation: README.md and IMPLEMENTATION.md provide usage and design details.
Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup
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
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
Implement a hierarchical configuration management system for StreetScene using OmegaConf/Hydra-style YAMLs. Add task-level and experiment configs, a CLI entry point to merge/validate overrides, and automatic resolution artifact saving to improve reproducibility.
Details
Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup