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

unable to run #64

Open
suhitaghosh10 opened this issue Dec 6, 2023 · 2 comments
Open

unable to run #64

suhitaghosh10 opened this issue Dec 6, 2023 · 2 comments

Comments

@suhitaghosh10
Copy link

I am getting this issue, after runing python3 test/test.py
My pytorch version is 2.0.0+cu117

Initializing VoiceFixer...
Traceback (most recent call last):
File "/home/sughosh/voicefixer/test/test.py", line 41, in
voicefixer = VoiceFixer()
^^^^^^^^^^^^
File "/home/sughosh/miniconda3/envs/emo/lib/python3.11/site-packages/voicefixer/base.py", line 13, in init
self._model = voicefixer_fe(channels=2, sample_rate=44100)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sughosh/miniconda3/envs/emo/lib/python3.11/site-packages/voicefixer/restorer/model.py", line 180, in init
self.vocoder = Vocoder(sample_rate=44100)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sughosh/miniconda3/envs/emo/lib/python3.11/site-packages/voicefixer/vocoder/base.py", line 19, in init
self._load_pretrain(Config.ckpt)
File "/home/sughosh/miniconda3/envs/emo/lib/python3.11/site-packages/voicefixer/vocoder/base.py", line 25, in _load_pretrain
self.model = Generator(Config.cin_channels)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sughosh/miniconda3/envs/emo/lib/python3.11/site-packages/voicefixer/vocoder/model/generator.py", line 34, in init
nn.utils.parametrizations.weight_norm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'torch.nn.utils.parametrizations' has no attribute 'weight_norm'

@itswalli
Copy link

Exactly the same for me

@SoshyHayami
Copy link

Go to the Generator's code and remove the "parametrizations" from the code. in other words, change all the nn.utils.parametrizations.weight_norm to nn.utils.weight_norm

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