Coder Social home page Coder Social logo

Comments (7)

andi611 avatar andi611 commented on July 24, 2024

I've written a preprocessing script for this: 27ff0d5

For any arbitrary dataset that looks like this:

- Custom_dataset/
    - Custom_train/
       - *.wav / flac / mp3 ...
    - Custom_dev/
       - *.wav / flac / mp3 ...
    - Custom_test/
       - *.wav / flac / mp3 ...

The script will process the "train", "dev", "test" set one by one,
and users only need to specify the path of the directory of each set.
So for the example above,
the path to the "train" set should be: Custom_dataset/Custom_train/
the path to the "dev" set should be: Custom_dataset/Custom_dev/
the path to the "test" set should be: Custom_dataset/Custom_test/
The generated files will be compatible to our dataloader.

Also, in your config file, these should be changed:

  data_path: 'data/NewData_fbank80' 
  train_set: ['train']
  dev_set: ['dev'] 
  test_set: ['test']

If it is convenient, can you please test this script on your own dataset to see if it works.
(I currently don't have any other dataset to process)
Let me know if there is any problem.

from s3prl.

shivam-chandhok avatar shivam-chandhok commented on July 24, 2024

Thank You very much for your help.I will look into it and get back.
Kindly have a look @Dhumketu

from s3prl.

juanting avatar juanting commented on July 24, 2024

Hello, thank you very much for sharing such an excellent project. As a newcomer in this field, I would like to ask whether this project can be used to generate speaker embedding for my future work. If so, could you please introduce the general process? Looking forward to your reply.

from s3prl.

andi611 avatar andi611 commented on July 24, 2024

I would like to ask whether this project can be used to generate speaker embedding for my future work. If so, could you please introduce the general process?

Yes, of course. The general process is as follow:

  1. Pre-train an upstream model in a self-supervised manner: Mockingjay, TERA, Audio ALBERT, APC, CPC, etc.
  2. Extract representations from the pre-trained upstream model, these representations are the speaker embedding you are looking for.
  3. Apply the extracted representations to your downstream task.

However, whether the learned representations are good speaker embedding largely depends on your downstream task, we've only verified them with speaker classification tasks using the LibriSpeech corpus. Various speaker classification experiment results are presented in the Mockingjay, TERA paper.

from s3prl.

juanting avatar juanting commented on July 24, 2024

Thank you very much for your reply. I will study the process

from s3prl.

aviasd avatar aviasd commented on July 24, 2024

I've written a preprocessing script for this: 27ff0d5

For any arbitrary dataset that looks like this:

- Custom_dataset/
    - Custom_train/
       - *.wav / flac / mp3 ...
    - Custom_dev/
       - *.wav / flac / mp3 ...
    - Custom_test/
       - *.wav / flac / mp3 ...

The script will process the "train", "dev", "test" set one by one,
and users only need to specify the path of the directory of each set.
So for the example above,
the path to the "train" set should be: Custom_dataset/Custom_train/
the path to the "dev" set should be: Custom_dataset/Custom_dev/
the path to the "test" set should be: Custom_dataset/Custom_test/
The generated files will be compatible to our dataloader.

Also, in your config file, these should be changed:

  data_path: 'data/NewData_fbank80' 
  train_set: ['train']
  dev_set: ['dev'] 
  test_set: ['test']

If it is convenient, can you please test this script on your own dataset to see if it works.
(I currently don't have any other dataset to process)
Let me know if there is any problem.

Is this working for pretrained TERA too?
Or is it just suitable for training our own original model from scratch without using the pretrained TERA?

from s3prl.

andi611 avatar andi611 commented on July 24, 2024

Is this working for pretrained TERA too?
Or is it just suitable for training our own original model from scratch without using the pretrained TERA?

No, this will not work for the pre-trained TERA. As pre-trained TERA requires fmllr data, which can be download from the provided Google drive link. (Pre-trained TERA needs the original fmllr data, not new extracted ones.)

from s3prl.

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.