-
Notifications
You must be signed in to change notification settings - Fork 838
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
An error was encountered while loading "pyannote/speaker-diarization" #1128
Comments
Thanks for posting! I'm running into a similar error when using a read token: pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization",
use_auth_token="hf_E...rest of token here")
I'm able to access the segmentation repository just fine in my browser and agreed to the license, but for some reason the token isn't working. |
the same error here |
Same error here, whatever is going on with the tokens is broken and the project has been unusable since 10/27. |
It looks like you need to fill out the user agreement on both hf.co/pyannote/speaker-diarization and hf.co/pyannote/segmentation in order to use either one. If I read the rationale for gating the model on HF correctly, this is strictly a data gathering exercise. It introduces too high a friction for me to recommend the system, or to utilize it as a dependency in any way. |
It seems to be working. I've installed a new environment and reproduced the diarization example. |
Installed new environment and was able to get things working. I was still encountering the error after accepting both agreements listed by @JoFrhwld - so not sure if agreeing to both of those is needed or not. Either way, fresh install works! |
It works now. I had uninstalled and reinstalled a few times but that did not by itself resolve the issue. |
I'm running the correct 2.1 version, I did go through both diarization and segmentation gateways even though it wasn't specified, I have updated my token a hundred times — and, with nothing changing in my environment, the error has migrated from 403 forbidden documented above to a new SemVer error. Sounds like I need to completely wipe my environment and start over, even though I was already on the correct versions. Bugs I understand. But why this friction in the first place? It feels developer and user hostile. |
same problem, solved with |
Agreeing to all the models on Huggingface resolved the issue for me (thanks @JoFrhwld ). Any tips how to save the model locally and access from cache? I don't want my code to be broken like this again. |
Yes, I thought the model was downloaded and really want this to work offline. |
Updating to the latest version of the library and generating |
Got it working with a full environment reset. But, no longer enthused about testing this. We could never, ever rely on it or ask anyone else to, after this experience. The models need to work offline. |
This fixes the issue for me. |
Same here. I have already accepted the terms in both repos, download a new token, updated hugging face hub and pyannote.audio to the last versión. The api response is generic for when the url or model is not found (it doesn't matter if the problem is the token or not). Look at the url of the pretrained model in the error that ends with bin. (a dot at the end). If you try the url without the dot in the browser you can download the file fine. Looks like a bug, at some point the code is adding a . (dot) in the file request. |
Some variant on the issue here: I've signed up on the hub to the terms for both models, generated the auth token and I can use it locally on my laptop. However, when I try to run it in an Azure VM, it just hangs on |
I have just updated the FAQ with instructions on how to use pretrained models and pipelines offline. |
Upgrading my pyannote.audio version worked for me as well. |
Hello,when i run the code :
I get an error :
whether I use the read token role or the write token role.
Anyone else know how to fix it? Thx.
The text was updated successfully, but these errors were encountered: