Export kokoro 1.0 int8 models (#2137)

This commit is contained in:
Fangjun Kuang
2025-04-20 14:35:02 +08:00
committed by GitHub
parent be0f382a54
commit 6cabaa11bf
7 changed files with 212 additions and 99 deletions

View File

@@ -71,7 +71,7 @@ def main():
with open("voices.bin", "wb") as f:
for _, speaker in id2speaker.items():
m = torch.load(
f"voices/{speaker}.pt",
f"Kokoro-82M/voices/{speaker}.pt",
weights_only=True,
map_location="cpu",
).numpy()