Giter Site home page Giter Site logo

Comments (5)

qlemaire22 avatar qlemaire22 commented on August 16, 2024

Hi! My data folder is divided like this:

- dataset1
     - audio
     - filelists
- dataset2
     - audio
     - filelists
...

The audio folder contains all the .wav files with their associated labels as .txt.
And the filelists folder contains the names of the audio files (without extension) dispatched into different files to create the test/validation and training set: mixed_train, mixed_val, mixed_test, music_train, music_val, speech_train, speech_val or noise_train (it is just, on line, one filename).

mixed, audio, speech or noise corresponds to the time of audio.

I hope it will help! Tell me if it is not clear enough.

from speech-music-detection.

Galvo87 avatar Galvo87 commented on August 16, 2024

Thanks! I have a lot of mixed content, I should try to gather also clean speech and music...
Btw, I still not fully understand the proper structure and matching of proper files/timestamps...
Test, validation and training set could be the same files, or must they all be different?
It would be awesome if you could provide a sample folder to examine for the noobs.
Thanks

from speech-music-detection.

qlemaire22 avatar qlemaire22 commented on August 16, 2024

Mixed content is technically the best since it represents the goal you want to achieve. It is also the most expensive kind of data.
But having clean speech and music is an easy way to have a bigger dataset.

Test, validation and training must be strictly different, otherwise you will overfit the data.

I can try to give a more detailed example, if you have a custom dataset with 3 audio of mixed content:

- custom_dataset
    - audio
        audio1.wav
        audio1.txt
        audio2.wav
        audio2.txt
        audio3.wav
        audio3.txt
    - filelists
        mixed_train
        mixed_test
        mixed_validation

With mixed_train being:

audio1

With mixed_test being:

audio2

With mixed_validation being:

audio3

For the .txt files, if audio 1 contains music from 0s to 5s and speech from 2s to 10s, audio1.txt will be

0 5 speech
2 10 music

Is it clearer?

from speech-music-detection.

Galvo87 avatar Galvo87 commented on August 16, 2024

Sure, thank you!
I'll surely give it a try.

from speech-music-detection.

Galvo87 avatar Galvo87 commented on August 16, 2024

Hi, I successfully installed everything and added my own datasets, but when issuing python prepare_dataset/prepare_audio.py my_own_dataset I always get:

Traceback (most recent call last): File "prepare_dataset/prepare_audio.py", line 224, in <module> resample_dataset(args.data_location, args.dataset) File "prepare_dataset/prepare_audio.py", line 18, in resample_dataset cfg = utils.load_json('../datasets.json') File "/home/developer/Documents/speech-music-detection/smd/utils.py", line 99, in load_json with open(filename) as f: FileNotFoundError: [Errno 2] No such file or directory: '../datasets.json'

Of course dataset.json is at the project's root, and contains:

{ "my_own_dataset": { "data_folder": "my_own_dataset/audio", "filelists_folder": "my_own_dataset/filelists" } }

What am I missing?
Thanks

from speech-music-detection.

Related Issues (5)

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.