Giter Club home page Giter Club logo

Comments (7)

anicolson avatar anicolson commented on May 17, 2024

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.

anicolson avatar anicolson commented on May 17, 2024

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.

betegon avatar betegon commented on May 17, 2024

That was it.

  1. Removed test_x_list_turbo.p file from data/
  2. 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.

liziru avatar liziru commented on May 17, 2024

@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.

liziru avatar liziru commented on May 17, 2024

Name: tensorflow-gpu
Version: 2.3.0

from deepxi.

liziru avatar liziru commented on May 17, 2024

@anicolson After doing this setting, everything is ok. Any way to remove this limit?
image
print("Performing inference...") inp_batch=inp_batch[:,:2048,:] supplementary_batch=supplementary_batch[:,:2048,:]

from deepxi.

anicolson avatar anicolson commented on May 17, 2024

from deepxi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.