Skip to content

Commit

Permalink
✨ improve infer
Browse files Browse the repository at this point in the history
- 优化流式推理
- 增加synthesize_stream cache

相关 #70
  • Loading branch information
zhzLuke96 committed Jun 29, 2024
1 parent f5f483a commit f9b81aa
Show file tree
Hide file tree
Showing 9 changed files with 365 additions and 190 deletions.
4 changes: 2 additions & 2 deletions modules/ChatTTS/ChatTTS/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ def _infer(
use_decoder,
params_infer_code,
):
wav = self._decode_to_wavs(result, length, use_decoder)
yield wav
wavs = self._decode_to_wavs(result, length, use_decoder)
yield wavs

def _decode_to_wavs(
self, result: GPT.GenerationOutputs, start_seeks: List[int], use_decoder: bool
Expand Down
161 changes: 0 additions & 161 deletions modules/ChatTTS/ChatTTS/infer/api.py

This file was deleted.

Loading

0 comments on commit f9b81aa

Please sign in to comment.