stefantaubert / tacotron

Command-line interface to train Tacotron 2 using .wav <=> .TextGrid pairs.
MIT License
5 stars 2 forks source link

Add symbol embeddings #2

Closed jasminsternkopf closed 2 years ago

jasminsternkopf commented 2 years ago

Please check. You can use:

S = Add_Symbol_Embeddings()
S.fit(input_weights, input_symbols, target_weights, target_symbols)
test_symbol_predicted = S.predict(TEST_SYMBOL)
s = torch.reshape(test_symbol_predicted, (1, 512))
updated_target_weights = torch.cat((target_weights, s))