mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-17 11:50:14 +08:00
fix v2 onnx export
This commit is contained in:
parent
75d7c03d41
commit
147d3c83b7
@ -550,6 +550,7 @@ class SynthesizerTrnMsNSFsidM(nn.Module):
|
||||
spk_embed_dim,
|
||||
gin_channels,
|
||||
sr,
|
||||
version,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__()
|
||||
@ -573,7 +574,7 @@ class SynthesizerTrnMsNSFsidM(nn.Module):
|
||||
self.gin_channels = gin_channels
|
||||
# self.hop_length = hop_length#
|
||||
self.spk_embed_dim = spk_embed_dim
|
||||
if self.gin_channels == 256:
|
||||
if version == "v1":
|
||||
self.enc_p = TextEncoder256(
|
||||
inter_channels,
|
||||
hidden_channels,
|
||||
|
Loading…
Reference in New Issue
Block a user