RVC-Project / Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!
MIT License
24.9k stars 3.65k forks source link

AttributeError: module 'infer.lib.infer_pack.modules' has no attribute 'LayerNorm' #2123

Open AlgorithmicKing opened 5 months ago

AlgorithmicKing commented 5 months ago

Hi guys, I am having a hard time solving this error:

Traceback (most recent call last):
  File "G:\AI\Voice-Cloning\infer-web.py", line 8, in <module>
    from infer.modules.vc.modules import VC
  File "G:\AI\Voice-Cloning\infer\modules\vc\modules.py", line 12, in <module>
    from infer.lib.infer_pack.models import (
  File "G:\AI\Voice-Cloning\infer\lib\infer_pack\models.py", line 13, in <module>
    from infer.lib.infer_pack import attentions, commons, modules
  File "G:\AI\Voice-Cloning\infer\lib\infer_pack\attentions.py", line 11, in <module>
    from infer.lib.infer_pack.modules import LayerNorm
ImportError: cannot import name 'LayerNorm' from 'infer.lib.infer_pack.modules' (G:\AI\Voice-Cloning\infer\lib\infer_pack\modules\__init__.py)
RVC-Boss commented 5 months ago

Did you clone the main branch?

AlgorithmicKing commented 5 months ago

i think so but ill check anyways

AlgorithmicKing commented 5 months ago

Did you clone the main branch?

How do i know what version am i using?