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
{{ message }}
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
Hello,
I am trying to run SpeechRecognition demo but, I get the error Fatal error: Can't find the model.
I followed the document created model both with torchaudio and my model but I get the same error.
Any solutions?
I use LibTorch 1.9.0
Thanks.
The text was updated successfully, but these errors were encountered:
Is "Bundle.main.path(forResource: fileName, ofType: type)" failing or let module = InferenceModule(fileAtPath: filePath) failing?
I changed my code to this
private lazy var module: InferenceModule = {
var fileName = "wav2vec2"
var type = "ptl"
if let filePath = Bundle.main.path(forResource: fileName, ofType: type){
let module = InferenceModule(fileAtPath: filePath)
return module!
} else {
fatalError("Can't find the model file!")
}
}()
and it still failed. Turned out I had exported the model on my own system using newer versions of pytorch and torchaudio.
Try downloading the model from the repo or exporting using the recommended versions of torch/torchaudio.
After doing this, it worked!!!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I am trying to run SpeechRecognition demo but, I get the error Fatal error: Can't find the model.
I followed the document created model both with torchaudio and my model but I get the same error.
Any solutions?
I use LibTorch 1.9.0
Thanks.
The text was updated successfully, but these errors were encountered: