Skip to content

Commit

Permalink
fix unconditional
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Oct 5, 2023
1 parent 403493b commit c4ec238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'voicebox-pytorch',
packages = find_packages(exclude=[]),
version = '0.2.5',
version = '0.2.6',
license='MIT',
description = 'Voicebox - Pytorch',
author = 'Phil Wang',
Expand Down
3 changes: 2 additions & 1 deletion voicebox_pytorch/voicebox_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,8 @@ def __init__(
self.text_to_semantic = text_to_semantic
self.duration_predictor = duration_predictor

assert exists(text_to_semantic) ^ exists(duration_predictor), 'you should use either TextToSemantic from Spear-TTS, or DurationPredictor for the text / phoneme to audio alignment, but not both'
if self.condition_on_text:
assert exists(text_to_semantic) ^ exists(duration_predictor), 'you should use either TextToSemantic from Spear-TTS, or DurationPredictor for the text / phoneme to audio alignment, but not both'

self.cond_drop_prob = cond_drop_prob

Expand Down

0 comments on commit c4ec238

Please sign in to comment.