Skip to content

Commit

Permalink
Temp Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidalnt committed Jul 11, 2024
1 parent 54c4eb1 commit eae13fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,11 @@ def setup_network(self):
self.use_f0 = self.cpt.get("f0", 1)

self.version = self.cpt.get("version", "v1")
self.text_enc_hidden_dim = 768 if self.version == "v2" else 256
self.text_enc_hidden_dim = 768 if not self.version == "v1" else 256
if self.version == "v3":
self.voc_type = "bigvgan"
else:
self.voc_type = self.cpt.get("voc_type", "hifigan")
self.net_g = Synthesizer(
*self.cpt["config"],
use_f0=self.use_f0,
Expand Down

0 comments on commit eae13fc

Please sign in to comment.