kevinwang676
commited on
Commit
•
db0f8b7
1
Parent(s):
ddb4e8d
Update cloning/clonevoice.py
Browse files- cloning/clonevoice.py +1 -1
cloning/clonevoice.py
CHANGED
@@ -31,7 +31,7 @@ def clone_voice(audio_filepath, dest_filename, progress=gradio.Progress(track_tq
|
|
31 |
hubert_model = CustomHubert(checkpoint_path='./models/hubert/hubert.pt').to(device)
|
32 |
|
33 |
# Load the CustomTokenizer model
|
34 |
-
tokenizer = CustomTokenizer.load_from_checkpoint('./models/hubert/
|
35 |
|
36 |
progress(0.25, desc="Converting WAV")
|
37 |
|
|
|
31 |
hubert_model = CustomHubert(checkpoint_path='./models/hubert/hubert.pt').to(device)
|
32 |
|
33 |
# Load the CustomTokenizer model
|
34 |
+
tokenizer = CustomTokenizer.load_from_checkpoint('./models/hubert/en_tokenizer.pth').to(device) # Automatically uses the right layers
|
35 |
|
36 |
progress(0.25, desc="Converting WAV")
|
37 |
|