mirror of
https://github.com/xiph/opus.git
synced 2025-05-30 15:17:42 +00:00
Add noise before sample embedding
Simulates rounding
This commit is contained in:
parent
3f7756c53f
commit
b5b1d5013e
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ def new_lpcnet_model(rnn_units1=384, rnn_units2=16, nb_used_features=20, batch_s
|
|||
past_errors = error_calc([Input_extractor([pcm,0]),tensor_preds])
|
||||
embed = diff_Embed(name='embed_sig',initializer = PCMInit())
|
||||
cpcm = Concatenate()([tf_l2u(Input_extractor([pcm,0])),tf_l2u(tensor_preds),past_errors])
|
||||
cpcm = GaussianNoise(.3)(cpcm)
|
||||
cpcm = Reshape((-1, embed_size*3))(embed(cpcm))
|
||||
cpcm_decoder = Concatenate()([Input_extractor([dpcm,0]),Input_extractor([dpcm,1]),Input_extractor([dpcm,2])])
|
||||
cpcm_decoder = Reshape((-1, embed_size*3))(embed(cpcm_decoder))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue