Skip to content

Commit

Permalink
rename train result (#14231)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyubo0722 authored Nov 14, 2024
1 parent eaef336 commit 54decf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ppocr/utils/save_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def update_train_results(config, prefix, metric_info, done_flag=False, last_num=

assert last_num >= 1
train_results_path = os.path.join(
config["Global"]["save_model_dir"], "train_results.json"
config["Global"]["save_model_dir"], "train_result.json"
)
save_model_tag = ["pdparams", "pdopt", "pdstates"]
save_inference_tag = ["inference_config", "pdmodel", "pdiparams", "pdiparams.info"]
Expand Down
4 changes: 2 additions & 2 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ def main(config, device, logger, vdl_writer, seed):
amp_custom_black_list = config["Global"].get("amp_custom_black_list", [])
amp_custom_white_list = config["Global"].get("amp_custom_white_list", [])
if os.path.exists(
os.path.join(config["Global"]["save_model_dir"], "train_results.json")
os.path.join(config["Global"]["save_model_dir"], "train_result.json")
):
try:
os.remove(
os.path.join(config["Global"]["save_model_dir"], "train_results.json")
os.path.join(config["Global"]["save_model_dir"], "train_result.json")
)
except:
pass
Expand Down

0 comments on commit 54decf9

Please sign in to comment.