-1

我已经安装了 openvino 所需的所有步骤。但是在运行演示时,为了确保一切正常,我收到了这个错误:“C:\Users\OGNGHAFF\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1/squeezenet1.1 .caffemodel" 不是现有文件

我找不到任何解决方案。

cd C:\Program Files (x86)\IntelSWTools\openvino\bin\
setupvars.bat

这工作正常。然后我正在运行初始化:

cd C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\install_prerequisites
install_prerequisites.bat

这也可以正常工作,但是当我想运行 demo 时:

cd C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\demo\
demo_squeezenet_download_convert_run.bat

我收到此错误:



**Download public squeezenet1.1 model
python "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "squeezenet1.1" --output_dir "C:\Users\OGNGHAFF\Documents\Intel\OpenVINO\openvino_models\models" --cache_dir "C:\Users\OGNGHAFF\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading models ||################

========== Downloading C:\Users\OGNGHAFF\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.prototxt
Traceback (most recent call last):
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\connection.py", line 326, in connect
    ssl_context=context)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\util\ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\OGNGHAFF\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "C:\Users\OGNGHAFF\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 814, in __init__
    self.do_handshake()
  File "C:\Users\OGNGHAFF\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 1068, in do_handshake
    self._sslobj.do_handshake()
  File "C:\Users\OGNGHAFF\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\requests\adapters.py", line 440, in send
    timeout=timeout
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\urllib3\util\retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /DeepScale/SqueezeNet/a47b6f13d30985279789d08053d37013d67d131b/SqueezeNet_v1.1/deploy.prototxt (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py", line 71, in try_download
    chunk_iterable = start_download()
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py", line 261, in <lambda>
    lambda: model_file.source.start_download(session, CHUNK_SIZE)):
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\common.py", line 185, in start_download
    response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\requests\sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\requests\sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\requests\sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\OGNGHAFF\AppData\Roaming\Python\Python36\site-packages\requests\adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /DeepScale/SqueezeNet/a47b6f13d30985279789d08053d37013d67d131b/SqueezeNet_v1.1/deploy.prototxt (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))
########## Error: Download failed**

4

1 回答 1

-1

正如上面评论中所建议的,如果您在代理服务器后面,请确保为 pip 配置代理设置。

尝试如下配置您的http_proxyhttps_proxy变量:

set http_proxy=http://[username:password@]proxyserver:port
set https_proxy=https://[username:password@]proxyserver:port
于 2021-10-22T15:56:23.667 回答