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

No module named 'utils' when running hubert_model.py #20

Open
Zestea opened this issue Nov 16, 2022 · 1 comment
Open

No module named 'utils' when running hubert_model.py #20

Zestea opened this issue Nov 16, 2022 · 1 comment

Comments

@Zestea
Copy link

Zestea commented Nov 16, 2022

Before running the normal command for training, I tried running python python ./network/hubert/hubert_model.py from the diff-svc root directory. However, after running it, I just get the following issue:

Traceback (most recent call last):
  File "D:\Utau\diff-svc-main\network\hubert\hubert_model.py", line 13, in <module>
    from utils import hparams
ModuleNotFoundError: No module named 'utils'

Attempting to do a quick fix by copying hparam.py to the same folder as hubert_model.py and directly importing it from there gives me another issue:

Traceback (most recent call last):
  File "D:\Utau\diff-svc-main\network\hubert\hubert_model.py", line 266, in <module>
    hbt_model = hubert_soft(str(list(Path(hparams['hubert_path']).home().rglob('*.pt'))[0]))
TypeError: 'module' object is not subscriptable

Any idea what might be causing this and how I can fix it? If it helps, I'm running this on Windows 10.

@prophesier
Copy link
Owner

That part of the code is actually not under maintenance. I can't ensure it doesn't have any problem. You may try execute set PYTHONPATH=. at the root directory of this project.

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