mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
Change config to json 3
This commit is contained in:
@@ -33,7 +33,7 @@ def remove_experiment_folder(experiment_path):
|
||||
"""Check folder if there is a checkpoint, otherwise remove the folder"""
|
||||
|
||||
checkpoint_files = glob.glob(experiment_path+"/*.pth.tar")
|
||||
if len(checkpoint_files) < 2:
|
||||
if len(checkpoint_files) < 1:
|
||||
shutil.rmtree(experiment_path)
|
||||
print(" ! Run is removed from {}".format(experiment_path))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user