在做迁徙学习的过程中,需要下载已经训练好的Inception_v3模型,首先我们为了将下载的模型保存到指定的地方,我们需要利用

wget -P 想要保存的目录 模型的网址,例如

wget -P /Volumes/Cu/QianXi_Learning https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip

在终端中运行以上代码,会报错:无法建立 SSL 连接

苹果电脑利用wget总是会出现无法建立 SSL 连接的问题

查阅资料之后发现,这是因为苹果电脑wget在使用HTTPS协议时,默认会去验证网站的证书,而这个证书验证经常会失败

因此为了解决这个问题,加上

--no-check-certificate

例如

wget -P /Volumes/Cu/QianXi_Learning --no-check-certificate https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip

成功

苹果电脑利用wget总是会出现无法建立 SSL 连接的问题

 

相关文章:

  • 2021-05-30
  • 2021-10-06
  • 2021-06-22
  • 2022-12-23
  • 2021-11-01
  • 2021-12-12
  • 2022-12-23
  • 2021-05-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-07-06
  • 2022-01-17
  • 2021-11-22
相关资源
相似解决方案