Git Product home page Git Product logo

Comments (6)

seth814 avatar seth814 commented on June 9, 2024

I've ran your data. It works just fine as long as you have two directories for each class in the wavfiles directory for example. water and no_water. This error suggests you did not clean your audio first and are passing several seconds of data.

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on June 9, 2024

Ok, but seth i have cleaned my data the file which i have sent you, you can see clean directory where i have my data but one confusion is when i pass
self.wav_paths = wav_paths
then i got
X[i,] = wav.reshape(1, -1)
ValueError: could not broadcast input array from shape (1,3424256) into shape (1,16000)

but when i pass :-
self.wav_paths =
('C:/Users/i00504285/Desktop/Aditya/Sound_Analysis/CSF48/wave_files/clean')

where i have my clean data then i got
IndexError: index 56 is out of bounds for axis 0 with size 54
the above error

from audio-classification.

seth814 avatar seth814 commented on June 9, 2024

wav_paths should be a list of file paths to all the wav files in the src_root from argparser at the bottom. The src_root should be your clean directory here. That second way of manually setting it to a directory is wrong. I think it's just looking in the wrong directory. Check your src_root.

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on June 9, 2024

Ya it solved thank you, but i have one new issue which is:-
tensorflow.python.framework.errors_impl.InvalidArgumentError: logits and labels must be broadcastable: logits_size=[16,10] labels_size=[16,2]

[[node loss/softmax_loss/softmax_cross_entropy_with_logits (defined at C:\Users\i00504285\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\framework\ops.py:1751) ]] [Op:__inference_distributed_function_4563]

Function call stack:
distributed_function.

why this happened and how to solve this?

from audio-classification.

seth814 avatar seth814 commented on June 9, 2024

It looks like you are using a model with the softmax output for 10 classes while you have 2 classes.

What file are you running that creates this error? line number?

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on June 9, 2024

I solved it thank you 👍

from audio-classification.

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.