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

You have to change the code a little as well. You have to comment out where speaker_id is being referenced in the code. I commented out 3 lines and it works fine for me without further modificaiton; #42

Open
gangagyatso4364 opened this issue Oct 5, 2024 · 2 comments

Comments

@gangagyatso4364
Copy link

          You have to change the code a little as well. You have to comment out where speaker_id is being referenced in the code. I commented out 3 lines and it works fine for me without further modificaiton;

1-
model_outputs = model(
input_ids=batch["input_ids"],
attention_mask=batch["attention_mask"],
labels=batch["labels"],
labels_attention_mask=batch["labels_attention_mask"],
# speaker_id=batch["speaker_id"],
return_dict=True,
monotonic_alignment_function=maximum_path,
)

2-model_outputs_train = model(
input_ids=batch["input_ids"],
attention_mask=batch["attention_mask"],
labels=batch["labels"],
labels_attention_mask=batch["labels_attention_mask"],
# speaker_id=batch["speaker_id"],
return_dict=True,
monotonic_alignment_function=maximum_path,
)

3- model_outputs_train = model(
input_ids=batch["input_ids"],
attention_mask=batch["attention_mask"],
labels=batch["labels"],
labels_attention_mask=batch["labels_attention_mask"],
# speaker_id=batch["speaker_id"],
return_dict=True,
monotonic_alignment_function=maximum_path,
)

Originally posted by @muhammadsaadgondal in #35 (comment)

@gangagyatso4364
Copy link
Author

Can you share the config file training multiple speakers. ?

@C0deXG
Copy link

C0deXG commented Oct 28, 2024

Can you share the config file training multiple speakers. ?

Just remove all the speaker_id or speaker mentioing in config file so remove all speaker mentioning in the config

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

2 participants