Skip to content

Commit

Permalink
Disable omegaconf environment variables (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea authored Jan 8, 2024
1 parent c03ca1a commit 4772ba2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ def main(cfg: DictConfig) -> Trainer:

if __name__ == '__main__':
yaml_path, args_list = sys.argv[1], sys.argv[2:]

# Disable resolving environment variables through omegaconf.
om.clear_resolver('oc.env')

# Load yaml and cli arguments.
with open(yaml_path) as f:
yaml_cfg = om.load(f)
cli_cfg = om.from_cli(args_list)
Expand Down

0 comments on commit 4772ba2

Please sign in to comment.