Comments (7)
Hi, can you delete the 'test_x_list.p' from the data directory and try again?
Also, which version of tensorflow are you using?
from deepxi.
Hi betagon,
You should not rename it to the original file. The code stores the file path and the file length of each .wav file in test_x_list.p. If you delete test_x_list.p, then the code will create it again correctly.
Just add the files you want to set/test_noisy_speech (without renaming). If you get an error, try and delete data/test_x_list.py to recreate the test list
Hope this helps
from deepxi.
That was it.
- Removed
test_x_list_turbo.p
file fromdata/
- Put audio files in
set/test_noisy_speech
Also, I had to resample audio files to the following format in order to make it work:
Sample rate: 16000 Hz
Bit rate: 256 kbps
I used the following command in linux:
sox input.wav -r 16000 -b 16 output.wav
# check if output.wav has 256kbps, if it has 512kbps, change option -b 16 to -b 8
To install sox: sudo apt-get install sox
Furthermore, the results I got weren't the expected and I run into errors when trying to do inference in a big file (180MB). I will open some issues later to address theses problems.
Thank you for you time and effort
from deepxi.
@anicolson I found a problem when I add one 35s test audio to 'set/test_noisy_speech', I got this error when running command './run.sh VER="mhanet-1.1c" INFER=1 GAIN="mmse-lsa"', but it works well for short audio such as 3s:
`100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 3.01it/s]
(1, 2225, 257)
(1, 2225, 257)
(1,)
Performing inference...
2020-12-29 17:33:16.576687: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-12-29 17:33:18.438092: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
Traceback (most recent call last):
File "main.py", line 92, in
saved_data_path=args.saved_data_path,
File "/home/dell/users/lpp/ns/DeepXi/deepxi/model.py", line 277, in infer
tgt_hat_batch = self.model.predict(inp_batch, verbose=1)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 130, in _method_wrapper
return method(self, *args, **kwargs)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 1599, in predict
tmp_batch_outputs = predict_function(iterator)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 780, in call
result = self._call(*args, **kwds)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 846, in _call
return self._concrete_stateful_fn._filtered_call(canon_args, canon_kwds) # pylint: disable=protected-access
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 1848, in _filtered_call
cancellation_manager=cancellation_manager)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 1924, in _call_flat
ctx, args, cancellation_manager=cancellation_manager))
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 550, in call
ctx=ctx)
File "/home/dell/.local/lib/python3.7/site-packages/tensorflow/python/eager/execute.py", line 60, in quick_execute
inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
(0) Invalid argument: indices[0,2209] = 2209 is not in [0, 2048)
[[node functional_1/embedding/embedding_lookup (defined at /home/dell/users/lpp/ns/DeepXi/deepxi/model.py:277) ]]
(1) Invalid argument: indices[0,2209] = 2209 is not in [0, 2048)
[[node functional_1/embedding/embedding_lookup (defined at /home/dell/users/lpp/ns/DeepXi/deepxi/model.py:277) ]]
[[functional_1/embedding/embedding_lookup/_8]]
0 successful operations.
0 derived errors ignored. [Op:__inference_predict_function_2107]
Errors may have originated from an input operation.
Input Source operations connected to node functional_1/embedding/embedding_lookup:
functional_1/embedding/embedding_lookup/1639 (defined at /home/dell/.conda/envs/lpp_tf2.0/lib/python3.7/contextlib.py:112)
Input Source operations connected to node functional_1/embedding/embedding_lookup:
functional_1/embedding/embedding_lookup/1639 (defined at /home/dell/.conda/envs/lpp_tf2.0/lib/python3.7/contextlib.py:112)
Function call stack:
predict_function -> predict_function`
I will appreciate any help.
from deepxi.
Name: tensorflow-gpu
Version: 2.3.0
from deepxi.
@anicolson After doing this setting, everything is ok. Any way to remove this limit?
print("Performing inference...") inp_batch=inp_batch[:,:2048,:] supplementary_batch=supplementary_batch[:,:2048,:]
from deepxi.
from deepxi.
Related Issues (20)
- Multi gpu trainin HOT 4
- Understanding the loss implementation HOT 9
- can i train this model without gpu? HOT 1
- How to run version resnet-1.0n? HOT 1
- Errors during training HOT 2
- What is the major consideration when choosing Hamming window with no periodic? HOT 11
- Clarity on file format reqruired in '/set' folder HOT 1
- no deepxi.network.attention.py file thus no MHANet class HOT 2
- Running Inference/Testing on Multiple GPUs HOT 7
- Training on other noise dataset gives resuts worse than unprocessed noisy HOT 5
- Denoise Live Microphone Feed HOT 1
- I can't find the implementation of addnoise function from deep_xi_test_set.m HOT 4
- Some questions about the data and the training process HOT 5
- Error loading pretrain model during inference HOT 3
- i can not find the freesound packs. does it mean Sound Ids HOT 2
- Some questions HOT 2
- Additional questions HOT 7
- mhanet loss results
- Can the MHANet run in real time HOT 4
- ValueError: No sample.npz file exists. (Inference)
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 deepxi.