pyannote-audio icon indicating copy to clipboard operation
pyannote-audio copied to clipboard

How to save the plot as a jpg and predicted rttms as a file for each test file?

Open sucv opened this issue 1 year ago • 4 comments

Dear author, I have a question about how to save the plot and prediction when I called the code snippet below. Seems that I cannot find any example from the ipynb tutorials. Thanks in advance!

    for file in dataset.test():
        # apply pretrained pipeline
        file["pretrained pipeline"] = pretrained_pipeline(file)

        # evaluate its performance
        metric(file["annotation"], file["pretrained pipeline"], uem=file["annotated"])

sucv avatar Oct 11 '23 14:10 sucv

Thank you for your issue.You might want to check the FAQ if you haven't done so already.

Feel free to close this issue if you found an answer in the FAQ.

If your issue is a feature request, please read this first and update your request accordingly, if needed.

If your issue is a bug report, please provide a minimum reproducible example as a link to a self-contained Google Colab notebook containing everthing needed to reproduce the bug:

  • installation
  • data preparation
  • model download
  • etc.

Providing an MRE will increase your chance of getting an answer from the community (either maintainers or other power users).

Companies relying on pyannote.audio in production may contact me via email regarding:

  • paid scientific consulting around speaker diarization and speech processing in general;
  • custom models and tailored features (via the local tech transfer office).

This is an automated reply, generated by FAQtory

github-actions[bot] avatar Oct 11 '23 14:10 github-actions[bot]

There is no easy way to save plots. You would have to dive into pyannote.core code.

Saving Annotation instances to RTTM file can be done with Annotation.write_rttm

hbredin avatar Oct 12 '23 14:10 hbredin

There is no easy way to save plots. You would have to dive into pyannote.core code.

Saving Annotation instances to RTTM file can be done with Annotation.write_rttm

Sometimes different speakers seem to be plotted with the same color, how can I change that? image

Approximetal avatar Dec 20 '23 07:12 Approximetal

well I think saving plot is really a necessary functionality. if we can export the annotation object as a matplotlib plot, it will also be easier to modify the plots.

alephpi avatar Jan 12 '24 15:01 alephpi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 12 '24 14:07 stale[bot]