Rongjiehuang / FastDiff

PyTorch Implementation of FastDiff (IJCAI'22)
402 stars 64 forks source link

No module named 'utils' #12

Closed Patchethium closed 2 years ago

Patchethium commented 2 years ago

A stupid question may be, I cloned the repo, run a mel-spec inference command and it throws the following error:

python tasks/run.py --config modules/FastDiff/config/FastDiff.yaml --exp_name FastDiff --infer --hparams='test_mel_dir=mels,use_wav=False,N=4'

Traceback (most recent call last):
  File "/home/.../FastDiff/tasks/run.py", line 3, in <module>
    from utils.hparams import set_hparams, hparams
ModuleNotFoundError: No module named 'utils'

The other commands like inference from wav files also throw the same error.

Rongjiehuang commented 2 years ago

please add export PYTHONPATH=.

Patchethium commented 2 years ago

Solved, thanks!