Skip to content

Commit

Permalink
Fix VitsSVC model infer bug when using nsfhifigan as generator (#37)
Browse files Browse the repository at this point in the history
* Fix VitsSVC infer bug when using nsfhifigan
* Remove old whisper-related file from .gitignore
  • Loading branch information
viewfinder-annn authored Dec 18, 2023
1 parent 3adde48 commit 99a6d47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ ckpts
*.pt
*.npy
*.npz
!modules/whisper_extractor/assets/mel_filters.npz
*.tar.gz
*.ckpt
*.wav
Expand Down
2 changes: 1 addition & 1 deletion models/svc/vits/vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def infer(self, data, noise_scale=0.35, seed=52468):
z = self.flow(z_p, c_mask, g=g, reverse=True)

if self.dec_name == "nsfhifigan":
o = self.dec(z * c_mask, f0=f0)
o = self.dec(z * c_mask, f0=f0.float())
elif self.dec_name == "apnet":
_, _, _, _, o = self.dec(z * c_mask)
else:
Expand Down

0 comments on commit 99a6d47

Please sign in to comment.