Export kokoro 1.0 int8 models (#2137)
This commit is contained in:
@@ -10,7 +10,9 @@ from generate_voices_bin import speaker2id
|
||||
|
||||
def main():
|
||||
model = onnx.load("./kokoro.onnx")
|
||||
style = torch.load("./voices/af_alloy.pt", weights_only=True, map_location="cpu")
|
||||
style = torch.load(
|
||||
"./Kokoro-82M/voices/af_alloy.pt", weights_only=True, map_location="cpu"
|
||||
)
|
||||
|
||||
id2speaker_str = ""
|
||||
speaker2id_str = ""
|
||||
|
||||
Reference in New Issue
Block a user