AttributeError: 'str' object has no attribute 'dim' on Offline model Segmentation #1299
-
I wanted to run offline model because of online model is slow on big voice files (22 minutes of talk took 28 minutes to diarize). Then I found the segmentation api has an offline model and I downloaded that model for usage. Whenever I am trying to run below script using offline model that installed here (pytorch_model.bin)
I get this error
I have checked for similar errors but I couldn't find any. Can anybody help me on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Models expect tensors as input. from pyannote.audio import Inference
inference = Inference(offline_model)
output = inference('loudness-fixed.wav') Please read the documentation for more details and options. |
Beta Was this translation helpful? Give feedback.
Models expect tensors as input.
If you do want to apply a model on the whole file, the
Inference
class can be used to wrap the model.Please read the documentation for more details and options.