Bug report - running on ARM / RPI #74
-
🐛 BugI tried to use the model in a Raspberry PI 3B and i get the following error : The function used instead of torch stftdef stft(input: Tensor, n_fft: int, hop_length: Optional[int] = None, stack tracesFile "/home/Salim/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl Traceback of TorchScript, original code (most recent call last): Expected behaviorIs it possible to modify the forward function that it will use the librosa stft for the raspberry PIs users ? EnvironmentPyTorch version: 1.7.0a0+e85d494 OS: Raspbian GNU/Linux 10 (buster) (armv7l) Python version: 3.7 (32-bit runtime) Versions of relevant libraries: |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Hi, Many thanks for reporting this.
I have heard reports of people actually building their PyTorch with Alas no build instructions were published yet - snakers4/silero-vad#37. As usual - community is encouraged to make their dockerized builds public (to be reproducible). Also have you tried the
Technically, there is no problem. |
Beta Was this translation helpful? Give feedback.
-
Also technically when you are doing the edge builds, you can omit torchaudio, torchvision, numpy (I guess). |
Beta Was this translation helpful? Give feedback.
-
btw, you can ask @leoplusplus in telegram here https://t.me/silero_speech - these are his comments |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you for your advices, I will try build pytorch with cblas if it doesn't work I will try the onnx version. |
Beta Was this translation helpful? Give feedback.
-
Hi, Any luck with these builds? |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the late reply, I failed to build torch so I switched to the onnx model and it works perfectly. |
Beta Was this translation helpful? Give feedback.
-
Did you have to do any special builds for |
Beta Was this translation helpful? Give feedback.
-
For |
Beta Was this translation helpful? Give feedback.
-
I see, nice to have this link and someone verifying that it is working |
Beta Was this translation helpful? Give feedback.
For
onnx-runtime
there is some pre-built wheel for raspberry 3 here, the wheels are built with this procedure.