pyannote-database
pyannote-database copied to clipboard
Faster RTTMLoader
RTTMLoader class is extremely slow for large RTTM files containing annotation of multiple audio files (e.g. VoxCeleb dataset).
We should make it faster!
cc @clement-pages
I am not assigning this issue to you but just wanted to let you know that I took note of what we discussed today.
I have just pushed two PRs that should make things much faster:
- this
pyannote.databasePR relies on vanillacsvlibrary instead ofpandas - this
pyannote.corePR switches fromsortedcontainers.SortedDictto vanilladictinAnnotationinternals (makingAnnotation.__init__orders of magnitude faster).
I still need to make sure those PRs do not break anything but you could already try them on your use case (this requires that you install both pyannote.database and pyannote.core from the corresponding branches).