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

AttributeError: 'NsfHifiGAN' object has no attribute 'h' #51

Closed
prpetu opened this issue Jan 24, 2023 · 0 comments
Closed

AttributeError: 'NsfHifiGAN' object has no attribute 'h' #51

prpetu opened this issue Jan 24, 2023 · 0 comments

Comments

@prpetu
Copy link

prpetu commented Jan 24, 2023

  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\run.py", line 15, in <module>
    run_task()
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\run.py", line 11, in run_task
    task_cls.start()
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\training\task\base_task.py", line 234, in start
    trainer.fit(task)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\utils\pl_utils.py", line 495, in fit
    self.run_pretrain_routine(model)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\utils\pl_utils.py", line 571, in run_pretrain_routine
    self.evaluate(model, self.get_val_dataloaders(), self.num_sanity_val_steps, self.testing)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\utils\pl_utils.py", line 1192, in evaluate
    output = self.evaluation_forward(model,
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\utils\pl_utils.py", line 1316, in evaluation_forward
    output = model.validation_step(*args)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\training\task\SVC_task.py", line 155, in validation_step
    self.plot_wav(batch_idx, sample['mels'], model_out['mel_out'], is_mel=True, gt_f0=gt_f0, f0=pred_f0)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\training\task\SVC_task.py", line 218, in plot_wav
    gt_wav = self.vocoder.spec2wav(gt_wav, f0=gt_f0)
  File "E:\다운로드\diff-svc-main (1)\diff-svc-main\network\vocoders\nsf_hifigan.py", line 48, in spec2wav
    if self.h.sampling_rate != hparams['audio_sample_rate']:
AttributeError: 'NsfHifiGAN' object has no attribute 'h'

error occured on training
used anaconda

@prpetu prpetu closed this as completed Jan 29, 2023
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

1 participant