Fix AttributeError by initializing 'repo_id' in HParams for Hugging Face Hub uploads

This commit is contained in:
Jungwon Chang
2024-02-29 15:00:10 +09:00
parent c86def5fdf
commit 8fee645f8d

View File

@@ -131,6 +131,7 @@ def run():
# This is needed because we have to pass values to `train_and_evaluate()`
hps.model_dir = model_dir
hps.speedup = args.speedup
hps.repo_id = args.repo_id
# 比较路径是否相同
if os.path.realpath(args.config) != os.path.realpath(