Warning (from warnings module):
File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 294
warnings.warn(
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
Downloading: "https://github.com/snakers4/silero-models/zipball/master" to C:\Users\Ukraine/.cache\torch\hub\master.zip
0.0%
0.0%
0.0%
0.0%
0.0%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.1%
0.2%
0.2%
... and more, more, more...
30.3%
30.3%
30.3%
Traceback (most recent call last):
File "C:\Users\Ukraine\Documents\pyProjects\ayko\_stt.py", line 9, in
model, decoder, utils = torch.hub.load(repo_or_dir='snakers4/silero-models',
File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 566, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 595, in _load_local
model = entry(*args, **kwargs)
File "C:\Users\Ukraine/.cache\torch\hub\snakers4_silero-models_master\src\silero\silero.py", line 33, in silero_stt
model, decoder = init_jit_model(model_url=models.stt_models.get(language).get(version).get(jit_model),
File "C:\Users\Ukraine/.cache\torch\hub\snakers4_silero-models_master\src\silero\utils.py", line 130, in init_jit_model
model = torch.jit.load(model_path, map_location=device)
File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\jit\_serialization.py", line 159, in load
cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes) # type: ignore[call-arg]
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
and i read that i need to remove this folder for dissaperence this trouble, but i did it 3 time and alway i have trouble in 30%. I connected to Ethernet Port, have models ets.
Добрый день, у меня проблемы с обучением ИИ. Я украл весь код из одного видео и пытаюсь сделать его лучше. вот код: [code]import torch import sounddevice as sd import speech_recognition as sr import time import numpy from glob import glob
output = model(input) for example in output: print(decoder(example.cpu()))
except sr.UnknownValueError: print("[log] Голос не распознан!")
r = sr.Recognizer() r.pause_threshold = 0.5 m = sr.Microphone(device_index=1)
with m as source: r.adjust_for_ambient_noise(source)
stop_listening = r.listen_in_background(m, callback) while True: time.sleep(0.1) [/code] and in console i see that: [code] Warning (from warnings module): File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 294 warnings.warn( 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 Downloading: "https://github.com/snakers4/silero-models/zipball/master" to C:\Users\Ukraine/.cache\torch\hub\master.zip
30.3% 30.3% 30.3% Traceback (most recent call last): File "C:\Users\Ukraine\Documents\pyProjects\ayko\_stt.py", line 9, in model, decoder, utils = torch.hub.load(repo_or_dir='snakers4/silero-models', File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 566, in load model = _load_local(repo_or_dir, model, *args, **kwargs) File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\hub.py", line 595, in _load_local model = entry(*args, **kwargs) File "C:\Users\Ukraine/.cache\torch\hub\snakers4_silero-models_master\src\silero\silero.py", line 33, in silero_stt model, decoder = init_jit_model(model_url=models.stt_models.get(language).get(version).get(jit_model), File "C:\Users\Ukraine/.cache\torch\hub\snakers4_silero-models_master\src\silero\utils.py", line 130, in init_jit_model model = torch.jit.load(model_path, map_location=device) File "C:\Users\Ukraine\AppData\Roaming\Python\Python311\site-packages\torch\jit\_serialization.py", line 159, in load cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes) # type: ignore[call-arg] RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory [/code] Troubles in [code]C:\Users\Ukraine\.cache\torch\hub\snakers4_silero-models_master[/code] and i read that i need to remove this folder for dissaperence this trouble, but i did it 3 time and alway i have trouble in 30%. I connected to Ethernet Port, have models ets.
Совершенно новичок в разработке интерактивного командного интерфейса, я пытался заставить компонент записывать видео. У меня есть устройство Android, настроенное для тестирования функции записи, но всякий раз, когда я пытаюсь начать запись, я...
Итак, я недавно закончил младший разработчик и недавно начал работать. Я работаю в медицинской сфере и в настоящее время единственный программист в своей компании, поэтому у меня нет поддержки со стороны старшего поколения, если я что-то облажаюсь....
Я работаю над проектом прогнозного моделирования в области аналитики здравоохранения, уделяя особое внимание оптимизации результатов лечения ВИЧ/СПИДа с использованием Python. Я собрал набор данных с различными характеристиками, включая...
Мне нужно реализовать программу на Python, которая моделирует логическую схему с несколькими входами и выходами. Внутри схемы должны быть различные логические блоки, такие как И, ИЛИ и блоки задержки времени (таймеры). Входные данные будут...
Я практикуюсь в Python и решил пока создать простую симуляцию рулетки с цветами. Однако я также хотел дать возможность делать ставки на цвет. Но похоже я сделал что-то не так, так как по какой-то причине я не могу использовать глобальную переменную...