Git Product home page Git Product logo

Comments (5)

seth814 avatar seth814 commented on May 31, 2024

Can you print the len(labels) after line 79 of train.py?

Also maybe show a couple examples of labels although I don't think it matters.

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on May 31, 2024

Do we have give specific path to this line
self.labels = labels
like we gave to this
self.wav_paths =('C:/Users/i00504285/Desktop/Aditya/Sound_Analysis/CSF48/wave_files/clean')

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on May 31, 2024

Can you print the len(labels) after line 79 of train.py?

Also maybe show a couple examples of labels although I don't think it matters.

Ya I did it shows 4 to me

https://drive.google.com/drive/folders/1tdUN92kf6oDC3-h2eCh_IZjVMMLdC-OA?usp=sharing

above link where i uploaded all my files.

Thank you.

from audio-classification.

seth814 avatar seth814 commented on May 31, 2024

The issue is, len(labels) needs to be >= batch_size. So after you run clean.py, you will need at least 16 files if using a batch_size of 16. Your data size is too small for this type of network. You can reduce batch_size to 4 but the model will never be able to generalize to new data.

from audio-classification.

adityanandgaokar avatar adityanandgaokar commented on May 31, 2024

Ok one quick question seth, If i will give 30 files in one class and as you know i have 2 classes so batch_size = 16 will work for me or any other number will work for me??

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.