mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
add model name to config
This commit is contained in:
1 parent
3c701c9d10
commit
f3bb9dd0f9
3 files changed
+4
-3
No files matched your search
@@ -35,11 +35,11 @@ def get_commit_hash():
|
||||
return commit
|
||||
|
||||
|
||||
def create_experiment_folder(root_path):
|
||||
def create_experiment_folder(root_path, model_name):
|
||||
""" Create a folder with the current date and time """
|
||||
date_str = datetime.datetime.now().strftime("%B-%d-%Y_%I:%M%p")
|
||||
commit_hash = get_commit_hash()
|
||||
output_folder = os.path.join(root_path, date_str + '-' + commit_hash)
|
||||
output_folder = os.path.join(root_path, date_str + '-' + model_name + '-' + commit_hash)
|
||||
os.makedirs(output_folder, exist_ok=True)
|
||||
print(" > Experiment folder: {}".format(output_folder))
|
||||
return output_folder
|
||||
|
||||
Reference in new issue
Block a user