-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: slice index 2 of dimension 0 out of bounds #19
Comments
@kimchi88 Did you have this issue. Please help on this error. @KiAlexander : Have you resolved the issue? |
@jybaek @edwardyoon @DemisEom : Hello, please help on the below issue: I am trying to augment the wav files using the below code and getting this error when I have tried with numrous tensorflow versions like 2.0.0, 1.15.0, 1.14.0, 1.13.1etc. Please advise.
|
@jybaek @edwardyoon @DemisEom : Please advise on the above issue. |
reshape spectrogram shape to [batch_size, time, frequency, 1] before calling |
@krupalraj, how can I convert the warped_masked_spectrogram to .wav file? @AASHISHAG have you realize re-generate the wav file successfully? |
Hi, I wonder if anyone managed to regenerate the wav file from the warped_masked_spectrogram. ` warped_masked_spectrogram = warped_masked_spectrogram.numpy()
....` Howvere I'm getting the below error
|
when I try the audio file SpecAugment,something wrong happaned, do anyone have an idea to solve the following problem?
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/yjm/SpecAugment/SpecAugment/spec_augment_tensorflow.py", line 165, in spec_augment
warped_mel_spectrogram = sparse_warp(mel_spectrogram)
File "/home/yjm/SpecAugment/SpecAugment/spec_augment_tensorflow.py", line 63, in sparse_warp
n, v = fbank_size[1], fbank_size[2]
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 680, in _slice_helper
name=name)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 846, in strided_slice
shrink_axis_mask=shrink_axis_mask)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/ops/gen_array_ops.py", line 9989, in strided_slice
shrink_axis_mask=shrink_axis_mask, name=name)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op
op_def=op_def)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2027, in init
control_input_ops)
File "/home/yjm/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1867, in _create_c_op
raise ValueError(str(e))
ValueError: slice index 2 of dimension 0 out of bounds. for 'strided_slice_1' (op: 'StridedSlice') with input shapes: [2], [1], [1], [1] and with computed input tensors: input[1] = <2>, input[2] = <3>, input[3] = <1>.
"
The text was updated successfully, but these errors were encountered: