From b9ac6b2d97fc733d011ac74d7fc1302f182498a6 Mon Sep 17 00:00:00 2001 From: pnsuau Date: Mon, 2 Oct 2023 13:19:34 +0000 Subject: [PATCH] feat: save config json when a json is loaded --- .pre-commit-config.yaml | 2 +- util/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da436446a..7b131d160 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/util/parser.py b/util/parser.py index 43295ac72..10d8ffaec 100644 --- a/util/parser.py +++ b/util/parser.py @@ -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: