Skip to content

Commit

Permalink
feat: save config json when a json is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pnsuau committed Oct 2, 2023
1 parent d3a57b7 commit b9ac6b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ repos:
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.8
language_version: python3.10
2 changes: 1 addition & 1 deletion util/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_opt(main_opt, remaining_args):
for name in override_options_names:
train_json[name] = override_options_json[name]

opt = TrainOptions().parse_json(train_json)
opt = TrainOptions().parse_json(train_json, save_config=True)

print("%s config file loaded" % main_opt.config_json)
else:
Expand Down

0 comments on commit b9ac6b2

Please sign in to comment.