mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +00:00
Boosting pitch correlation at inference time
This commit is contained in:
parent
099f0872f7
commit
d2d847bcae
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ static void compute_plc_pred(PLCNetState *net, float *out, const float *in) {
|
||||||
compute_gruB(&plc_gru1, zeros, net->plc_gru1_state, dense_out);
|
compute_gruB(&plc_gru1, zeros, net->plc_gru1_state, dense_out);
|
||||||
compute_gruB(&plc_gru2, zeros, net->plc_gru2_state, net->plc_gru1_state);
|
compute_gruB(&plc_gru2, zeros, net->plc_gru2_state, net->plc_gru1_state);
|
||||||
_lpcnet_compute_dense(&plc_out, out, net->plc_gru2_state);
|
_lpcnet_compute_dense(&plc_out, out, net->plc_gru2_state);
|
||||||
|
/* Artificially boost the correlation to make harmonics cleaner. */
|
||||||
|
out[19] = MIN16(.5f, out[19]+.1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear_state(LPCNetPLCState *st) {
|
void clear_state(LPCNetPLCState *st) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue