From def76b02b5bfb7bca8ebe9ca3738a79105a4d438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Thu, 19 Feb 2026 12:38:46 +0100 Subject: [PATCH] add more debug output for token count --- VorleserMac/Services/KokoroPipeline.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VorleserMac/Services/KokoroPipeline.swift b/VorleserMac/Services/KokoroPipeline.swift index f4526d3..5d4955a 100644 --- a/VorleserMac/Services/KokoroPipeline.swift +++ b/VorleserMac/Services/KokoroPipeline.swift @@ -91,7 +91,7 @@ final class KokoroPipeline { private func synthesizeTokenIds(_ tokenIdsAll: [Int], phonemeScalarCount: Int) throws -> [Float] { let tokenIds = [0] + tokenIdsAll + [0] - print("Token count: \(tokenIds.count)") + print("Token count: \(tokenIds.count) (input: \(tokenIdsAll.count) + 2 for start/end)") let inputIds = try MLMultiArray(shape: [1, 128], dataType: .int32) let attention = try MLMultiArray(shape: [1, 128], dataType: .int32)