Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The package fails to reference naturalspeech2_pytorch.utils.* #18

Open
ArEnSc opened this issue May 27, 2023 · 4 comments
Open

The package fails to reference naturalspeech2_pytorch.utils.* #18

ArEnSc opened this issue May 27, 2023 · 4 comments

Comments

@ArEnSc
Copy link

ArEnSc commented May 27, 2023

^
on an related @lucidrains is this ready for testing? I am thinking about trying to get it to memorize a sample to test and then pretrain a model. I did notice that you mentioned that the pitch conditioning wasn't complete

@lucidrains
Copy link
Owner

@ArEnSc hmm, can you show me the full stack trace?

@ArEnSc
Copy link
Author

ArEnSc commented May 27, 2023

@lucidrains

@ArEnSc hmm, can you show me the full stack trace?

│ /usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py:3553 in run_code │
│ │
│ 3550 │ │ │ │ elif async_ : │
│ 3551 │ │ │ │ │ await eval(code_obj, self.user_global_ns, self.user_ns) │
│ 3552 │ │ │ │ else: │
│ ❱ 3553 │ │ │ │ │ exec(code_obj, self.user_global_ns, self.user_ns) │
│ 3554 │ │ │ finally: │
│ 3555 │ │ │ │ # Reset our crash handler in place │
│ 3556 │ │ │ │ sys.excepthook = old_excepthook │
│ in <cell line: 2>:2 │
│ │
│ /usr/local/lib/python3.10/dist-packages/naturalspeech2_pytorch/init.py:8 in │
│ │
│ 5 │ from einops._torch_specific import allow_ops_in_compiled_graph │
│ 6 │ allow_ops_in_compiled_graph() │
│ 7 │
│ ❱ 8 from naturalspeech2_pytorch.naturalspeech2_pytorch import ( │
│ 9 │ NaturalSpeech2, │
│ 10 │ Transformer, │
│ 11 │ Wavenet, │
│ │
│ /usr/local/lib/python3.10/dist-packages/naturalspeech2_pytorch/naturalspeech2_pytorch.py:27 in │
│ │
│ │
│ 24 from beartype.door import is_bearable │
│ 25 │
│ 26 from naturalspeech2_pytorch.attend import Attend │
│ ❱ 27 from naturalspeech2_pytorch.utils.tokenizer import Tokenizer, ESpeak │
│ 28 from naturalspeech2_pytorch.version import version
│ 29 │
│ 30 from accelerate import Accelerator │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'naturalspeech2_pytorch.utils.tokenizer'

reproduce
!pip install naturalspeech2-pytorch
then paste in

import torch
from naturalspeech2_pytorch import (
EncodecWrapper,
Model,
NaturalSpeech2
)

@lucidrains
Copy link
Owner

@ArEnSc would you like to retry with 0.0.38?

@ArEnSc
Copy link
Author

ArEnSc commented May 28, 2023

@lucidrains it works!
Quick question so is it ready for training minus the pitch conditioning ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants