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

ModuleNotFoundError: No module named 'pyannote.core' #1506

Closed
Heavenbest opened this issue Oct 19, 2023 · 2 comments
Closed

ModuleNotFoundError: No module named 'pyannote.core' #1506

Heavenbest opened this issue Oct 19, 2023 · 2 comments

Comments

@Heavenbest
Copy link

When I execute the following code I get an error message。

from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("./models")

send pipeline to GPU (when available)

import torch
pipeline.to(torch.device("cuda"))

apply pretrained pipeline

diarization = pipeline("008-53.500-57.050.wav")

print the result

for turn, , speaker in diarization.itertracks(yield_label=True):
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker
{speaker}")

error message :

Traceback (most recent call last):
File "test.py", line 5, in
from pyannote.audio import Pipeline
File "/data/pengshan/TYedu_202308/pyannote-audio/pyannote/audio/init.py", line 29, in
from .core.inference import Inference
File "/data/pengshan/TYedu_202308/pyannote-audio/pyannote/audio/core/inference.py", line 33, in
from pyannote.core import Segment, SlidingWindow, SlidingWindowFeature
ModuleNotFoundError: No module named 'pyannote.core'

@github-actions
Copy link

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

@arrrrr3186
Copy link

How did you resolved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants