Comments (6)
Should be fixed now.
from dtln.
Should be fixed now.
Thanks for the quick fix!
The audio file is denoised finally.
from dtln.
@breizhn I just did the convert_weights_to_tf_lite.py then on a model I had just trained that is also default.
self.fs = 16000
self.batchsize = 32
self.len_samples = 15
self.activation = 'sigmoid'
self.numUnits = 128
self.numLayer = 2
self.blockLen = 512
self.block_shift = 128
self.dropout = 0.25
self.lr = 1e-3
self.max_epochs = 200
self.encoder_size = 256
self.eps = 1e-7
Then run
python real_time_processing_tf_lite.py
Traceback (most recent call last):
File "real_time_processing_tf_lite.py", line 69, in <module>
interpreter_1.set_tensor(input_details_1[0]['index'], in_mag)
File "/home/stuart/DTLN/venv/lib/python3.8/site-packages/tflite_runtime/interpreter.py", line 705, in set_tensor
self._interpreter.SetTensor(tensor_index, value)
ValueError: Cannot set tensor: Dimension mismatch. Got 3 but expected 4 for input 0.
Its tflite_runtime 2.7.0 trained on 2.7.1 @breizhn Am I doing something wrong or have things regressed?
Works with pretrained
interpreter_1 = tflite.Interpreter(model_path='./pretrained_model/model_1.tflite')
interpreter_1.allocate_tensors()
interpreter_2 = tflite.Interpreter(model_path='./pretrained_model/model_2.tflite')
interpreter_2.allocate_tensors()
But ones I just trained
interpreter_1 = tflite.Interpreter(model_path='./DTLN_2.tflite')
interpreter_1.allocate_tensors()
interpreter_2 = tflite.Interpreter(model_path='./DTLN_1.tflite')
interpreter_2.allocate_tensors()
I am guessing you have to train for a stateful model?
What setting do I need for modelTrainer.build_DTLN_model_stateful() ?
from dtln.
@StuartIanNaylor I am facing the same issue. Please help me out if you have solved it.
from dtln.
from dtln.
Nope apols haven't got round to trying yet.
from dtln.
Related Issues (20)
- Dimension mismatch error for real_time_dtln_audio.py HOT 1
- PESQ and STOI calculator HOT 1
- Can DTLN be combined with AEC in real time communication? HOT 1
- How to modify DTLN_model.py files to support the latest tensorflow 2.9
- ValueError: Unexpected result of `train_function` (Empty logs). HOT 1
- Validation loss is too high HOT 1
- Creating integer only models HOT 11
- About one model HOT 1
- Using convert_weights_to_tf_lite.py did not produce the same results as the pre-training model. HOT 3
- Are my val_loss values valid? HOT 2
- Is it necessary to apply a window after fft? HOT 1
- The length of the audio after noise reduction is shortened HOT 3
- Multiple voices (far and near), in this issue,how to separate
- Can the calculation estimated_complex be modified? HOT 1
- Integer two tflite.
- error: 'tf.TensorListSetItem' op is neither a custom op nor a flex op while trying to quantize the model into int8 HOT 4
- Which onnx does the DTLN_norm_500h.h5 file correspond to?
- about problem of adding win function frame
- Why there is 384 latency?
- Make DTLN as one model? HOT 1
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 dtln.