You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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).
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'
The text was updated successfully, but these errors were encountered: