alphacep / alphacep/vosk-api

Model construction in Python creates many threads

Aperta
#313 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
15.1k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I've been wondering why does the `Model` construction create hundreds of threads which remain idle and are not released?
I can't quite figure out where the forking accrues and how could I join them (and should I even do it)?

The easiest way of replicating it:
```
pip install vosk
python3
from vosk import KaldiRecognizer, Model
model = Model('/path/to/model/')
```
Simply by checking with `htop` I can see that 609 threads have been created and after the `Model` is constructed they are in the sleep state.

Thank you,

Alena Kazakova

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.