diff-svc icon indicating copy to clipboard operation
diff-svc copied to clipboard

AttributeError: 'HifiGAN' object has no attribute 'device'

Open betterftr opened this issue 3 years ago • 6 comments

on windows, anaconda

betterftr avatar Nov 04 '22 11:11 betterftr

modified line 64 in network/vocoders/hifigan.py from device = self.device to device = torch.device("cuda") now it says: AttributeError: 'HifiGAN' object has no attribute 'model'

betterftr avatar Nov 04 '22 12:11 betterftr

Using this hifigan pretrained model from : https://github.com/MoonInTheRiver/DiffSinger/releases/download/pretrain-model/model_ckpt_steps_1512000.ckpt Can this cause issues?

betterftr avatar Nov 04 '22 12:11 betterftr

check if you have excuted ‘set PYTHONPATH=.’ in the root directory of this project

prophesier avatar Nov 11 '22 04:11 prophesier

Check the folder name in your yaml file, "vocoder_ckpt:" should match the folder name. Also, mine has an additional ptn model. Not sure if that is the problem.

InDragonR avatar Nov 12 '22 09:11 InDragonR

I am getting this error as well...

dillfrescott avatar Jan 27 '23 04:01 dillfrescott

Fixed it. In the vocoder_ckpt: folder, there needs to be the config.yaml file and the checkpoint from the 0109_hifigan_bigpopcs_hop128.zip file under DiffSinger releases...

Both files are in that zip file!

dillfrescott avatar Jan 27 '23 04:01 dillfrescott

Where is the vocoder_ckpt folder? network/vocoders? i dont see that anywhere and i have the config.yaml and checkpoint files for nsf_hifigan. I keep getting: AttributeError: "nsfhifigan" object has no attribute "h"

misdom avatar Apr 17 '23 08:04 misdom

Where is the vocoder_ckpt folder? network/vocoders? i dont see that anywhere and i have the config.yaml and checkpoint files for nsf_hifigan. I keep getting: AttributeError: "nsfhifigan" object has no attribute "h"

so you need to create the folder and set vocode_ckpt arg in config.yamlto it. it's not a already-exist folder.

ayanesakura avatar Apr 19 '23 11:04 ayanesakura