mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-03-12 20:35:31 +08:00
refactor(config): simplify config manager to single unified config
This commit is contained in:
@@ -62,7 +62,7 @@ class DINOv2FeatureExtractor:
|
||||
FeatureCompressorConfig instance
|
||||
"""
|
||||
if config_path is None:
|
||||
return cfg_manager.get_or_load_config("feature_compressor")
|
||||
return cfg_manager.get()
|
||||
else:
|
||||
return load_yaml(Path(config_path), FeatureCompressorConfig)
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class FeatureVisualizer:
|
||||
Configuration Pydantic model
|
||||
"""
|
||||
if config_path is None:
|
||||
return cfg_manager.get_or_load_config("feature_compressor")
|
||||
return cfg_manager.get()
|
||||
else:
|
||||
return load_yaml(Path(config_path), FeatureCompressorConfig)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user