alphacep / alphacep/vosk-api

Model construction in Python creates many threads

オープン
#313 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
15.1k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。