Skip to content

Silero without pytorch dep #569

Answered by snakers4
roablep asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to use Silero without the pytorch dependency and only onnx?

Yes it is, but you will need to go through the code and delete all the PyTorch references and just load the onnx model from local file. The onnx version can work standalone, but you will also need to replace torchaudio with your audio loading library.

If not, is it possible to use a lighter version of pytorch like cpuonly?

As far as I know, there CPU only versions of PyTorch listed on the installation page. Also if you can use c++, you can use libtorch.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snakers4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants
Converted from issue

This discussion was converted from issue #568 on November 06, 2024 02:36.