Skip to content
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

How to fine tune with Audio Sequence Dataset #14

Open
allandclive opened this issue Feb 23, 2024 · 4 comments
Open

How to fine tune with Audio Sequence Dataset #14

allandclive opened this issue Feb 23, 2024 · 4 comments

Comments

@allandclive
Copy link

allandclive commented Feb 23, 2024

https://huggingface.co/datasets/Sunbird/salt-studio-lug

how do I load & fine tune using this dataset

@ylacombe
Copy link
Owner

Hi Allan, the easiest way to do this for me is to do something like that (I haven't tested the code but it should work). It's basically converting the audio column to something that datasets understand

from datasets import load_dataset, Audio

dataset = load_dataset("Sunbird/salt-studio-lug")

dataset = dataset.map(lambda s: {"audio": s[0], "sampling_rate": s[1]}, input_columns=["audio", "sample_rate")
dataset = dataset.cast_column("audio", Audio())

dataset.push_to_hub(THE DATASET NAME YOU WANT)

Then you can use the newly created dataset as indicated in the README

@allandclive
Copy link
Author

Let me give it a try

@allandclive
Copy link
Author

Error

TypeError: Couldn't cast array of type list<item: float> to struct<bytes: binary, path: string>

@atulpokharel001
Copy link

is there is any way to fine tune this model with https://huggingface.co/datasets/mozilla-foundation/common_voice_16_1 this one dataset have any one have experience of doing it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants