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

Download old pre-trained models from torch.hub? #1520

Closed
picheny-nyu opened this issue Oct 31, 2023 · 4 comments
Closed

Download old pre-trained models from torch.hub? #1520

picheny-nyu opened this issue Oct 31, 2023 · 4 comments
Labels

Comments

@picheny-nyu
Copy link

I was resurrecting some old code for a student project to illustrate diarization performance. I no longer seem to be able to download the diehard models using torch.hub.load. Is this correct, and I have to upgrade to the newest pyannote version? I saw another post with the same problem (no resolution).

Thanks
Michael Picheny

Copy link

Thank you for your issue.
We found the following entry in the FAQ which you may find helpful:

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

@hbredin
Copy link
Member

hbredin commented Nov 2, 2023

The old torch.hub thing is no longer supported since pyannote 2.x (we are now at pyannote 3.x).
You should revert to pyannote 1.x but I would not recommend that as the performance of those old models is way behind what pyannote/speaker-diarization-3.0 can do.

Copy link

stale bot commented May 2, 2024

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 stale bot added the wontfix label May 2, 2024
@stale stale bot closed this as completed Jun 1, 2024
@eyaler
Copy link

eyaler commented Jun 27, 2024

solution:

!pip install pyannote.core==4.1 pyannote.pipeline==1.5.2 pyannote.audio==1.1.1
!wget -nc https://raw.githubusercontent.com/pyannote/pyannote-audio/1.1.1/hubconf.py -P /root/.cache/torch/hub/pyannote_pyannote-audio_main
import torch
import pyannote.core #https://github.com/pyannote/pyannote-audio/issues/561
pipeline = torch.hub.load('pyannote/pyannote-audio', 'dia', trust_repo=True)

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

3 participants