snakers4 / silero-vad

Silero VAD: pre-trained enterprise-grade Voice Activity Detector
MIT License
4.44k stars 435 forks source link

Bug report - Demo notebook with error on Stream imitation example #249

Closed hobojoe closed 2 years ago

hobojoe commented 2 years ago

🐛 Bug

While following the demo notebook(https://colab.research.google.com/github/snakers4/silero-vad/blob/master/silero-vad.ipynb#scrollTo=iDKQbVr8jsry), I get an error on the Stream imitation example.

ValueError: only one element tensors can be converted to Python scalars image

To Reproduce

Steps to reproduce the behavior:

  1. Open demo notebook
  2. Run Install Dependencies
  3. Run Stream imitation example

Expected behavior

Successful execution of the notebook

Environment

Please copy and paste the output from this environment collection script (or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Additional context

snakers4 commented 2 years ago

confirmed

adamnsandle commented 2 years ago

@hobojoe Hotfixed. Thanks for reporting!