Skip to content

Commit

Permalink
Fix the bug of mkdir in train_ms.py (#292)
Browse files Browse the repository at this point in the history
Co-authored-by: 李盛强 <[email protected]>
  • Loading branch information
Shengqiang-Li and 李盛强 authored Jan 18, 2024
1 parent 8f4c1a5 commit 90b67fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def run():
args = parser.parse_args()
model_dir = os.path.join(args.model, config.train_ms_config.model)
if not os.path.exists(model_dir):
os.makedirs(model_dir)
os.makedirs(model_dir, exist_ok=True)
hps = utils.get_hparams_from_file(args.config)
hps.model_dir = model_dir
# 比较路径是否相同
Expand Down

0 comments on commit 90b67fe

Please sign in to comment.