Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU running stops at downloading #127

Open
Yaffa16 opened this issue Oct 8, 2024 · 3 comments
Open

GPU running stops at downloading #127

Yaffa16 opened this issue Oct 8, 2024 · 3 comments

Comments

@Yaffa16
Copy link

Yaffa16 commented Oct 8, 2024

I keep getting this error while using the dicker for Gpu :

==========
== CUDA ==

CUDA Version 12.4.1
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
Starting server, please wait...
Initializing RealtimeSTT...
Exception in thread Thread-2 (_transcription_worker):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/app/RealtimeSTT/audio_recorder.py", line 862, in _transcription_worker
worker.run()
File "/app/RealtimeSTT/audio_recorder.py", line 124, in run
system_signal.signal(system_signal.SIGINT, system_signal.SIG_IGN)
File "/usr/lib/python3.10/signal.py", line 56, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread of the main interpreter
[2024-10-08 11:59:29.057] [ctranslate2] [thread 153] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
/usr/local/lib/python3.10/dist-packages/torch/hub.py:293: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour
warnings.warn(
Downloading: "https://github.com/snakers4/silero-vad/zipball/master" to /root/.cache/torch/hub/master.zip

@Yaffa16
Copy link
Author

Yaffa16 commented Oct 8, 2024

The program gets stuck at the downloading and does not move ahead

@Chonlasitsk
Copy link

I encounters same issue it seem like now, It can't initiate instance of AudioToTextRecorder() class
this is error message when I try initiate instance:

Traceback (most recent call last):
  File "/home/tawan/.pyenv/versions/miniconda3-latest/envs/STT-browser/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/tawan/.pyenv/versions/miniconda3-latest/envs/STT-browser/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/tawan/.pyenv/versions/miniconda3-latest/envs/STT-browser/lib/python3.10/site-packages/RealtimeSTT/audio_recorder.py", line 862, in _transcription_worker
    worker.run()
  File "/home/tawan/.pyenv/versions/miniconda3-latest/envs/STT-browser/lib/python3.10/site-packages/RealtimeSTT/audio_recorder.py", line 124, in run
    system_signal.signal(system_signal.SIGINT, system_signal.SIG_IGN)
  File "/home/tawan/.pyenv/versions/miniconda3-latest/envs/STT-browser/lib/python3.10/signal.py", line 56, in signal
    handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread of the main interpreter

@KoljaB
Copy link
Owner

KoljaB commented Oct 9, 2024

Thanks for reporting. I wasn't aware of signal causing issues in another thread on other platforms. Fixed in current repo code, release for pypi (pip install) coming later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants