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

AMI data preparation "AssertionError: Unknown speaker!" #976

Open
alkazap opened this issue Jun 21, 2021 · 1 comment
Open

AMI data preparation "AssertionError: Unknown speaker!" #976

alkazap opened this issue Jun 21, 2021 · 1 comment
Labels

Comments

@alkazap
Copy link

alkazap commented Jun 21, 2021

python prepare.py fails with AssertionError: Unknown speaker! FEE005

Assertion error comes from utils.py line 117 assert speaker in speakers, f"Unknown speaker! {speaker}"

Judging by the assertion and line 119 speaker = speakers[speaker], the script expects speakers to be a dictionary, however, as we can see on line 111 speakers = {(speaker.id, speaker) for speaker in speakers}, speakers is a set of tuples.

Line 111 should be speakers = { speaker.id : speaker for speaker in speakers }, then the script works as intended.

@alkazap alkazap added the bug label Jun 21, 2021
@tlikhomanenko
Copy link
Contributor

Hi @alkazap,

Thanks for finding the bug, could you mind to send PR on the fix?

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

No branches or pull requests

2 participants