-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Part of my configuration:
Databases:
# tell pyannote.database where to find AMI wav files.
# {uri} is a placeholder for the session name (eg. ES2004c).
# you might need to update this line to fit your own setup.
AMI: amicorpus/{uri}/audio/{uri}.Mix-Headset.wav
AMI-SDM: amicorpus/{uri}/audio/{uri}.Array1-01.wav
Protocols:
AMI-SDM:
SpeakerDiarization:
only_words:
train:
uri: ../lists/train.meetings.txt
annotation: ../only_words/rttms/train/{uri}.rttm
annotated: ../uems/train/{uri}.uem
lab: ../only_words/labs/train/{uri}.lab
development:
uri: ../lists/dev.meetings.txt
annotation: ../only_words/rttms/dev/{uri}.rttm
annotated: ../uems/dev/{uri}.uem
lab: ../only_words/labs/dev/{uri}.lab
test:
uri: ../lists/test.meetings.txt
annotation: ../only_words/rttms/test/{uri}.rttm
annotated: ../uems/test/{uri}.uem
lab: ../only_words/labs/test/{uri}.lab
When I comment out these two lines, the program runs well and file['lab'] returns exactly an Annotation object
pyannote-database/pyannote/database/loader.py
Lines 260 to 261 in da5794b
| if "uri" not in self.placeholders_: | |
| raise ValueError("`path` must contain the {uri} placeholder.") |
Seems this sanity check is not working as expected. Also other loaders (e.g. RTTMLoader) don't have this line (I guess the logic should be similar).
Metadata
Metadata
Assignees
Labels
No labels