mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-30 17:05:27 +08:00
feat(gpt): do re-gen only on None manual_seed
This commit is contained in:
@@ -617,7 +617,7 @@ class GPT(nn.Module):
|
||||
"unexpected end at index %s",
|
||||
str([unexpected_idx.item() for unexpected_idx in finish.nonzero()]),
|
||||
)
|
||||
if ensure_non_empty:
|
||||
if ensure_non_empty and manual_seed is None:
|
||||
if show_tqdm:
|
||||
pbar.close()
|
||||
self.logger.warning("regenerate in order to ensure non-empty")
|
||||
|
||||
Reference in New Issue
Block a user