Comments (7)
This is a small bug with initialising the µlaw variables. They shouldn't be initialised to 0, but to 128.
--- a/src/test_lpcnet.py
+++ b/src/test_lpcnet.py
@@ -81,6 +81,8 @@ fout = open(out_file, 'wb')
skip = order + 1
for c in range(0, nb_frames):
cfeat = enc.predict([features[c:c+1, :, :nb_used_features], periods[c:c+1, :, :]])
+ fexc[0,0,0] = 128 # 0 mulaw
+ iexc[0,0,0] = 128
for fr in range(0, feature_chunk_size):
f = c*feature_chunk_size + fr
a = features[c, fr, nb_features-order:]
--- a/src/lpcnet.c
+++ b/src/lpcnet.c
@@ -110,6 +110,7 @@ LPCNetState *lpcnet_create()
{
LPCNetState *lpcnet;
lpcnet = (LPCNetState *)calloc(sizeof(LPCNetState), 1);
+ lpcnet->last_exc = 128;
return lpcnet;
}
from lpcnet.
I didn't met this problem before. An irrelevant question, what's the player used in the picture?
from lpcnet.
@candlewill I have the same, but not only in the start, have you solved this problem?
from lpcnet.
@candlewill @hdmjdp
I also have the same, synthesized by C on CPU inference.
In Python-GPU inference, there is no noise in the wave start.
from lpcnet.
@ohleo have you found the reason?
from lpcnet.
@bpotard I think you are right. but why sometimes it did not have the noise in the start even that they are initialised to 0.
from lpcnet.
I think the problem is solved by @bpotard 's method, and it's better to be merged into master.
from lpcnet.
Related Issues (20)
- Change of domain/sampling rate
- change model parameter does not work when rebuild lpcnet_demo? HOT 2
- Bug: MDense state restore crash with missing argument
- project version problem(tf2) HOT 4
- Heuristic doubling period trick by preprocessing pitch correlation values?
- Can't open input.pcm
- Is there a way to reduce the size of LPCNET_PACKET_SAMPLES and bits of per samples? HOT 1
- What does the "network size“ refer to on https://jmvalin.ca/demo/lpcnet/
- where is the gru_b_dense_feature defined?
- Does anyone have experience in jointly training of e2e LPCNet?
- Bitstream compatibility HOT 1
- P192 speed test in ARM A35 chip HOT 6
- "ValueError: axes don't match array" when applying --retrain flag to sample model file HOT 1
- I could get "nnet_data.*" files for the newly trained model. However after doing "make" and trying to generate signals with "lpcnet_demo", I find the reconstructions same as those ones of the pre-trained model. Any reason why this happens?
- bug
- How can it be so slow? HOT 1
- Training a new PLC model HOT 1
- Make errors HOT 8
- make error:undefined reference to `lpc_from_cepstrum' HOT 8
- How should the dataset of PLC algorithm be constructed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lpcnet.