-
Notifications
You must be signed in to change notification settings - Fork 26
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
Value Error with input #3
Comments
Hello |
what padding technique do you recommend? or would you be able to share the code you used to produce the results in the medium post? |
Its in the repo : https://github.com/CVxTz/audio_classification/blob/master/code/keras_cnn_mel.py def load_audio_file(file_path, input_length=input_length):
return data |
Hmm, I haven't changed that part though, so the data is being loaded by the load_audio_file code. It seems like the error actually doesn't have to do with the data being input into the model, but potentially the data being output by the first layer (input layer) of the model. Any idea what could be happening? I haven't changed the code except to download the data and put that file in my directory. |
Maybe its a difference in librosa version since I uploaded the code |
Did this solve your issue ? |
That also did not work, and I am getting the same error message. Could you let me know what versions of each package you used in your working version of the code? |
I am trying to get keras_cnn_mel.py to run but am getting the following error:
ValueError: Error when checking input: expected input_1 to have shape (63, 320, 1) but got array with shape (157, 320, 1)
I’m guessing the time dimension is not matching up for some of the audio files. Did you end up truncating those files or is there some sort of data compression technique I should look into?
The text was updated successfully, but these errors were encountered: