error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

使用–recursive 进行克隆

git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git

下载下来后caffe-fast-rcnn文件夹为空,报错如下

Cloning into xxx...
remote: Enumerating objects: 23976, done.error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of xxx failed
Failed to clone 'caffe-fast-rcnn'. Retry scheduled
Cloning into xxx...
remote: Enumerating objects: 23976, done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of xxx failed
Failed to clone 'caffe-fast-rcnn' a second time, aborting

解决方法:
保留已下载部分,进入到所下载项目文件夹,执行git submodule update --init --recursive

cd py-faster-rcnn
git submodule update --init --recursive

结果显示如下,

Cloning into xxx...
Submodule path 'caffe-fast-rcnn': checked out '0dcd397b29507b8314e252e850518c5695efbb83'

再次检查caffe-fast-rcnn文件夹,出现内容。

下为 https://www.jianshu.com/p/f8a55b972972/ 中所述:
克隆一个包含子仓库的仓库目录,并不会clone下子仓库的文件,只是会克隆下.gitmodule描述文件,需要进一步克隆子仓库文件。

// 初始化本地配置文件
$ git submodule init

// 检出父仓库列出的commit
$ git submodule update

或者使用组合指令

$ git submodule update --init --recursive
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值