Skip to content
Snippets Groups Projects
Commit d2d847bc authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Boosting pitch correlation at inference time

parent 099f0872
No related branches found
No related tags found
No related merge requests found
......@@ -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_gru2, zeros, net->plc_gru2_state, net->plc_gru1_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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment