CjangCjengh / MoeGoe

Executable file for VITS inference
MIT License
2.32k stars 251 forks source link

AttributeError: 'SynthesizerTrn' object has no attribute 'emb_g' #40

Open doxtor6 opened 1 year ago

doxtor6 commented 1 year ago

There is a bug when n_speakers = 1 because of a bug in models.py:

if n_speakers > 1:
  self.emb_g = nn.Embedding(n_speakers, gin_channels)
caifangvip commented 1 year ago

Do you have solve this bug?

doxtor6 commented 1 year ago

Change above to:

if n_speakers >= 1: self.emb_g = nn.Embedding(n_speakers, gin_channels)

DogeLord081 commented 12 months ago

Change above to:

if n_speakers >= 1: self.emb_g = nn.Embedding(n_speakers, gin_channels)

How do I compile and use as an exe though after changing that?