ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Kesha 2.0 (https://forum.antichat.xyz/showthread.php?t=1460291)

Dewize 05.12.2022 14:27

Привет. Посмотрел я видео Хауди-Хо, про Кешу 2.0. Решил такой-же себе поиметь. Скачал его исходник все модули скачал. Но не робит объясните почему пж.

Цитата:

Сообщение от Спойлер

H:\Edik\Proekti\PythonProekti\kesha\venv\Scripts\p ython.exe H:\Edik\Proekti\PythonProekti\Kesha\main.py

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=3000 lattice-beam=2

LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10

LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.

LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.

LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from model_small/ivector/final.ie

LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor

LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.

LOG (VoskAPI:ReadDataFiles():model.cc:282) Loading HCL and G from model_small/graph/HCLr.fst model_small/graph/Gr.fst

LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo model_small/graph/phones/word_boundary.int

H:\Edik\Proekti\PythonProekti\kesha\venv\lib\site-packages\torch\hub.py:267: 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-m...zipball/master" to C:\Users\riko1/.cache\torch\hub\master.zip

Traceback (most recent call last):

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1348, in do_open

h.request(req.get_method(), req.selector, req.data, headers,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1282, in request

self._send_request(method, url, body, headers, encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1328, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1277, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1037, in _send_output

self.send(msg)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 975, in send

self.connect()

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1454, in connect

self.sock = self._context.wrap_socket(self.sock,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 513, in wrap_socket

return self.sslsocket_class._create(

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 1071, in _create

self.do_handshake()

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 1342, in do_handshake

self._sslobj.do_handshake()

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'codeload.github.com'. (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "H:\Edik\Proekti\PythonProekti\Kesha\main.py", line 5, in

import tts

File "H:\Edik\Proekti\PythonProekti\Kesha\tts.py", line 14, in

model, _ = torch.hub.load(repo_or_dir='snakers4/silero-models',

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 539, in load

repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 211, in _get_cache_or_reload

download_url_to_file(url, cached_file, progress=False)

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 597, in download_url_to_file

u = urlopen(req)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 216, in urlopen

return opener.open(url, data, timeout)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 525, in open

response = meth(req, response)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 634, in http_response

response = self.parent.error(

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 557, in error

result = self._call_chain(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 496, in _call_chain

result = func(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 749, in http_error_302

return self.parent.open(new, timeout=req.timeout)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 519, in open

response = self._open(req, data)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 536, in _open

result = self._call_chain(self.handle_open, protocol, protocol +

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 496, in _call_chain

result = func(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1391, in https_open

return self.do_open(http.client.HTTPSConnection, req,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1351, in do_open

raise URLError(err)

urllib.error.URLError:

Process finished with exit code 1


Dewize 07.12.2022 16:02

up

Dewize 18.02.2023 23:06

UP

TastyBread123 19.02.2023 10:44

Цитата:

Сообщение от Dewize

Привет. Посмотрел я видео Хауди-Хо, про Кешу 2.0. Решил такой-же себе поиметь. Скачал его исходник все модули скачал. Но не робит объясните почему пж.

Цитата:

Сообщение от Спойлер

H:\Edik\Proekti\PythonProekti\kesha\venv\Scripts\p ython.exe H:\Edik\Proekti\PythonProekti\Kesha\main.py

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=3000 lattice-beam=2

LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10

LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.

LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.

LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from model_small/ivector/final.ie

LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor

LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.

LOG (VoskAPI:ReadDataFiles():model.cc:282) Loading HCL and G from model_small/graph/HCLr.fst model_small/graph/Gr.fst

LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo model_small/graph/phones/word_boundary.int

H:\Edik\Proekti\PythonProekti\kesha\venv\lib\site-packages\torch\hub.py:267: 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-m...zipball/master" to C:\Users\riko1/.cache\torch\hub\master.zip

Traceback (most recent call last):

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1348, in do_open

h.request(req.get_method(), req.selector, req.data, headers,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1282, in request

self._send_request(method, url, body, headers, encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1328, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1277, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1037, in _send_output

self.send(msg)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 975, in send

self.connect()

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\http\client.py", line 1454, in connect

self.sock = self._context.wrap_socket(self.sock,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 513, in wrap_socket

return self.sslsocket_class._create(

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 1071, in _create

self.do_handshake()

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\ssl.py", line 1342, in do_handshake

self._sslobj.do_handshake()

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'codeload.github.com'. (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "H:\Edik\Proekti\PythonProekti\Kesha\main.py", line 5, in

import tts

File "H:\Edik\Proekti\PythonProekti\Kesha\tts.py", line 14, in

model, _ = torch.hub.load(repo_or_dir='snakers4/silero-models',

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 539, in load

repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 211, in _get_cache_or_reload

download_url_to_file(url, cached_file, progress=False)

File "H:\Edik\Proekti\PythonProekti\kesha\venv\lib\ site-packages\torch\hub.py", line 597, in download_url_to_file

u = urlopen(req)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 216, in urlopen

return opener.open(url, data, timeout)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 525, in open

response = meth(req, response)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 634, in http_response

response = self.parent.error(

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 557, in error

result = self._call_chain(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 496, in _call_chain

result = func(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 749, in http_error_302

return self.parent.open(new, timeout=req.timeout)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 519, in open

response = self._open(req, data)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 536, in _open

result = self._call_chain(self.handle_open, protocol, protocol +

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 496, in _call_chain

result = func(*args)

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1391, in https_open

return self.do_open(http.client.HTTPSConnection, req,

File "C:\Users\riko1\AppData\Local\Programs\Python\Pyth on310\lib\urllib\request.py", line 1351, in do_open

raise URLError(err)

urllib.error.URLError:

Process finished with exit code 1


Ошибка подтверждения валидности сертификата гитхаба

Dewize 19.02.2023 15:30

Цитата:

Сообщение от Vtylochka

Ошибка подтверждения валидности сертификата гитхаба

и что делать?

TastyBread123 19.02.2023 15:54

Цитата:

Сообщение от Dewize

и что делать?

Научиться использовать Google

Как устранить ошибку ssl сертификата в Python?

Ответили на вопрос 5 человек. Оцените лучшие ответы! И подпишитесь на вопрос, чтобы узнавать о появлении новых ответов.

qna.habr.com

Dewize 20.02.2023 22:09

Цитата:

Сообщение от Vtylochka

Научиться использовать Google

Как устранить ошибку ssl сертификата в Python?

Ответили на вопрос 5 человек. Оцените лучшие ответы! И подпишитесь на вопрос, чтобы узнавать о появлении новых ответов.

qna.habr.com


Ничего не понял, я в Python чайник... Что мне просто нужно сделать, чтоб у меня появился хотябы 1 друг, хоть и в ПК

Dmitriy Makarov 20.02.2023 23:39

Цитата:

Сообщение от Dewize

Ничего не понял, я в Python чайник... Что мне просто нужно сделать, чтоб у меня появился хотябы 1 друг, хоть и в ПК

В строке
Код:

requests.get
передай аргумент
Код:

verify
со значением
Код:

False
.

Как-то так:

Код:

reguests.get("Тут твоя ссылка", verify = False)

Dewize 21.02.2023 11:52

Ссылка на что?

Dmitriy Makarov 21.02.2023 12:10

Цитата:

Сообщение от Dewize

Ссылка на что?

Ты не парсишь ничего? 🤔


Время: 03:45