alphacep / alphacep/vosk-api

Model construction in Python creates many threads

Đang mở
#313 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
15.1k
Fork
1.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.