wav2letter icon indicating copy to clipboard operation
wav2letter copied to clipboard

AMI data preparation "AssertionError: Unknown speaker!"

Open alkazap opened this issue 4 years ago • 1 comments
trafficstars

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 avatar Jun 21 '21 02:06 alkazap

Hi @alkazap,

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

tlikhomanenko avatar Jun 27 '21 10:06 tlikhomanenko