mli / autocut

用文本编辑器剪视频
Apache License 2.0
6.72k stars 676 forks source link

Error, when run cut #104

Closed blaoke closed 1 year ago

blaoke commented 1 year ago

when I run autocut -t test/media/test001_en.mp4 --whisper-model tiny got error like this

/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/whisper/timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def backtrace(trace: np.ndarray):
[autocut:transcribe.py:L32] INFO   Done Init model in 1.8 sec
[autocut:transcribe.py:L36] INFO   Transcribing test/media/test001_en.mp4
Traceback (most recent call last):
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 1354, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 1256, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 1302, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 1251, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 1011, in _send_output
    self.send(msg)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 951, in send
    self.connect()
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/http/client.py", line 1425, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bu/miniconda3/envs/autocut/bin/autocut", line 8, in <module>
    sys.exit(main())
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/autocut/main.py", line 170, in main
    Transcribe(args).run()
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/autocut/transcribe.py", line 42, in run
    speech_array_indices = self._detect_voice_activity(audio)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/autocut/transcribe.py", line 60, in _detect_voice_activity
    self.vad_model, funcs = torch.hub.load(
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/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 "/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/torch/hub.py", line 180, in _get_cache_or_reload
    repo_owner, repo_name, ref = _parse_repo_info(github)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/site-packages/torch/hub.py", line 134, in _parse_repo_info
    with urlopen(f"https://github.com/{repo_owner}/{repo_name}/tree/main/"):
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 1397, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/home/bu/miniconda3/envs/autocut/lib/python3.8/urllib/request.py", line 1357, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)>

how to fix it, help