Skip to content

Commit

Permalink
feat(gpt): do re-gen only on None manual_seed
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 3, 2024
1 parent 61add70 commit c140a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChatTTS/model/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def generate(
"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")
Expand Down

0 comments on commit c140a0b

Please sign in to comment.