git submodule update --init --recursive

最近在跑好几个模型,视频检测,物体检测,搭建mxnet时,有点问题,记录一下。git

视频检测,mxnet须要用指定版本,git 切换到指定版本后,update了,可是依然提示说有些库找不到。想了想,应该是recursive没用,可我clone项目时,明明是recursive了,后来一想才明白,估计是master下的库和submodule下的库不同了。须要在submodule下进行update --recursive. 投靠网络。网络

 

git submodule update --recursive
git submodule update --init --recursive

https://stackoverflow.com/questions/10168449/git-update-submodule-recursivefetch

 


 可是后来发现这样编译时仍是出问题,cuda编译不过,后来发现cub老没法checkout。编译时cuda就经过不了。后来找到另一个链接,按照里面的指导,算是能够了,终于编译经过了,可是仍是有点问题,cudnn不能用,后来我干脆把cudnn编译不用,就行了,如今能够跑了。https://stackoverflow.com/questions/30348615/git-submodule-checkout-error-fatal-reference-is-not-a-treecode

git branch -d master
git fetch --all --prune
git checkout master
git fsck
相关文章
相关标签/搜索