rnnoise | Recurrent neural network for audio noise reduction | Machine Learning library
kandi X-RAY | rnnoise Summary
kandi X-RAY | rnnoise Summary
RNNoise is a noise suppression library based on a recurrent neural network. To compile, just type: % ./autogen.sh % ./configure % make. Optionally: % make install.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rnnoise
rnnoise Key Features
rnnoise Examples and Code Snippets
Community Discussions
Trending Discussions on rnnoise
QUESTION
I am building a model based on this code for noise suppression. My problem with the vanilla implementation is that it loads all data at once, which is not the best idea when the training data gets really large; my input file, denoted in the linked code as training.h5
, is over 30 GB.
I decided to instead go with tf.data
interface that should allow me to work with large data sets; my problem here is that I don't know how to properly shape TFRecordDataset
so that it meets what's required by the Model API.
If you check model.fit(x_train, [y_train, vad_train]
, it essentially requires the following:
- x_train, shape
[nb_sequences, window, 42]
- y_train, shape
[nb_sequences, window, 22]
- vad_train, shape
[nb_sequences, window, 1]
window
one typically fixes (in the code: 2000
), so the only variable nb_sequences
that stems from how large is your data set. However, with tf.data
, we don't supply x
and y
, but only x
(see Model API docs).
In an effort to make the code reproducible, I created the input file with the following code:
...ANSWER
Answered 2020-Mar-15 at 15:07Given that your model has 1 input and 2 outputs, your tf.data.Dataset
should have two entries:
1) Input array of shape (window, 42)
2) Tuple of two arrays each of shape (window, 22)
and (window, 1)
I just noticed that your dataset has these two entries (similar to those described above) and the only thing that differs is the shape.
The only operations you need to perfom is to batch your data twice:
First - to restore the window parameter.
Second - to pass a batch to a model.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rnnoise
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page