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

Import error when loading vocos #15

Closed
jseo0703 opened this issue Jul 4, 2023 · 1 comment
Closed

Import error when loading vocos #15

jseo0703 opened this issue Jul 4, 2023 · 1 comment

Comments

@jseo0703
Copy link

jseo0703 commented Jul 4, 2023

I'm trying to import "vocos" module, but I'm getting the following traceback error.
Is there anyone who can help me solve this issue?
fyi, all dependencies are installed and I just want to try inference with pretrained models.
Thanks in advance.

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[1], line 1
----> 1 from vocos import Vocos

File ~/conda/codec/lib/python3.8/site-packages/vocos/__init__.py:1
----> 1 from vocos.pretrained import Vocos
      4 __version__ = "0.0.3"

File ~/conda/codec/lib/python3.8/site-packages/vocos/pretrained.py:7
      5 from huggingface_hub import hf_hub_download
      6 from torch import nn
----> 7 from vocos.feature_extractors import FeatureExtractor, EncodecFeatures
      8 from vocos.heads import FourierHead
      9 from vocos.models import Backbone

File ~/conda/codec/lib/python3.8/site-packages/vocos/feature_extractors.py:8
      5 from encodec import EncodecModel
      6 from torch import nn
----> 8 from vocos.modules import safe_log
     11 class FeatureExtractor(nn.Module):
     12     """Base class for feature extractors."""

File ~/conda/codec/lib/python3.8/site-packages/vocos/modules.py:89
     85         x = x * scale + shift
...
    112     ):
    113         super().__init__()
    114         self.lrelu_slope = lrelu_slope

TypeError: 'type' object is not subscriptable
@egorsmkv
Copy link

egorsmkv commented Jul 4, 2023

Use Python 3.10

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

3 participants