Skip to content

Commit 4ae1741

Browse files
committed
Fix training bug
1 parent 3673872 commit 4ae1741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self,
9898
):
9999
os.remove(earliest_checkpoint)
100100
print(f"Removed {earliest_checkpoint}")
101-
elif os.path.exists(config.get('pretrained_model', '')):
101+
elif config.get('pretrained_model', ''):
102102
latest_checkpoint = load_custom_model_from_hf("Plachta/Seed-VC", config['pretrained_model'], None)
103103
else:
104104
latest_checkpoint = ""

0 commit comments

Comments
 (0)