Skip to content

Commit

Permalink
curtail from the left when the prompt is being encoded, only works fo…
Browse files Browse the repository at this point in the history
…r soundstream for now
  • Loading branch information
lucidrains committed May 13, 2023
1 parent e1c4667 commit 105d2a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion naturalspeech2_pytorch/naturalspeech2_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def process_prompt(self, prompt = None):
if is_raw_prompt:
with torch.no_grad():
self.codec.eval()
prompt, _, _ = self.codec(prompt, return_encoded = True)
prompt, _, _ = self.codec(prompt, curtail_from_left = True, return_encoded = True)

return prompt

Expand Down
2 changes: 1 addition & 1 deletion naturalspeech2_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.25'
__version__ = '0.0.26'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
install_requires=[
'accelerate',
'audiolm-pytorch>=0.30.0',
'audiolm-pytorch>=0.30.2',
'beartype',
'einops>=0.6.1',
'ema-pytorch',
Expand Down

0 comments on commit 105d2a4

Please sign in to comment.