Skip to content

Commit 801fd1b

Browse files
committed
Fix from TheDailySpank.
#30
1 parent 8f95a62 commit 801fd1b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

F5TTS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ def load_e2_model(self, vocoder):
146146

147147
def load_f5_model(self, vocoder):
148148
repo_name = "F5-TTS"
149+
extension = "safetensors"
149150
if vocoder == "bigvgan":
150151
exp_name = "F5TTS_Base_bigvgan"
151152
ckpt_step = 1250000
153+
extension = "pt"
152154
else:
153155
exp_name = "F5TTS_Base"
154156
ckpt_step = 1200000
155157
return self.load_f5_model_url(
156-
f"hf://SWivid/{repo_name}/{exp_name}/model_{ckpt_step}.safetensors", # noqa E501
158+
f"hf://SWivid/{repo_name}/{exp_name}/model_{ckpt_step}.{extension}", # noqa E501
157159
vocoder,
158160
)
159161

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-f5-tts"
33
description = "Text to speech with F5-TTS"
4-
version = "1.0.16"
4+
version = "1.0.17"
55
license = {text = "MIT License"}
66

77
[project.urls]

0 commit comments

Comments
 (0)