alphacep / alphacep/vosk-api

`Exception: Failed to create a model` when using `BatchModel`

Đang mở
#1,269 9 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ả

## Description
I wanted to test inference on GPU with `BatchModel`. So I started by downloading [vosk-model-en-us-0.22.zip](https://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip) and extracting it in a directory named `model` in the same directory where `python/example/test*` are.

While using the `test_simple` works fine for this model
```bash
python test_simple.py test.wav
```
Using the `test_gpu_batch` yields the following error:
```bash
Traceback (most recent call last):
File "test_gpu_batch.py", line 13, in
model = BatchModel("model")
File "/home/sadra/image-captioning/.venv/lib/python3.8/site-packages/vosk/__init__.py", line 243, in __init__
raise Exception("Failed to create a model")
Exception: Failed to create a model
```
I wanted to know what can I do to make it work

## Environment Details
+ Vosk version: `0.3.45`
+ Python version: `3.8.10`
+ kernel / OS: `5.15.0-57-generic` / `20.04.1-Ubuntu`

## Minor Notes
+ I also tested [asr_server_gpu.py](https://github.com/alphacep/vosk-server/blob/master/websocket-gpu-batch/asr_server_gpu.py) which exited with the exact same error/
+ I chose the English model - the one which suits GPU - from this [docker](https://github.com/alphacep/vosk-server/blob/master/docker/Dockerfile.kaldi-en-gpu) image.

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.