mirror of
https://github.com/facebookresearch/blt.git
synced 2025-09-01 10:09:06 +00:00
When merging configs, do not merge data sources
This commit is contained in:
parent
63913e4dba
commit
662262a528
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ def parse_args_with_default(
|
||||||
if default_cfg is not None:
|
if default_cfg is not None:
|
||||||
ordered_cfgs.insert(0, default_cfg)
|
ordered_cfgs.insert(0, default_cfg)
|
||||||
cfg = OmegaConf.merge(*ordered_cfgs)
|
cfg = OmegaConf.merge(*ordered_cfgs)
|
||||||
|
for c in reversed(ordered_cfgs):
|
||||||
|
if "data" in c and "sources" in c["data"]:
|
||||||
|
cfg["data"]["sources"] = c["data"]["sources"]
|
||||||
|
break
|
||||||
return OmegaConf.to_container(cfg, resolve=True, throw_on_missing=True)
|
return OmegaConf.to_container(cfg, resolve=True, throw_on_missing=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue