Ubuntu 20.04 CUDA+cuDNN+tensorflow+Bazel

It's for my own record.

Environment: Laptop (Ubuntu 20.04) 

                      NVIDIA  [GeForce GTX 1050 Ti Mobile]

                              

In order to install the Navidia environment to improve the speed of YOLOv5-lite, the following packages should be installed firstly.

Check the version of Python3 first.

The versions of these packages should match as follows(first line). 

Tensorflow

https://www.tensorflow.org/install/source#ubuntuhttps://www.tensorflow.org/install/source#ubuntu

If you encounter "Error - launchpadlib requires "testresources"  which is not installed", try the following code

sudo apt install python3-testresources

If the version of protobuf is too high, try to reinstall it,

sudo apt remove protobuf

then use "protoc --version" to check the version.

protoc --version

If there is no response, you can reinstall the protobuf by

sudo apt install snapd
sudo snap install protobuf --classic

Then the version of protobuf is supposed to be 3.14.0

CUDA+cuDNN

Ubuntu 20.04安装CUDA & CUDNN 手把手带你撸_哈希Map的博客-CSDN博客_ubuntu20.04安装cuda新手先看这之前一直使用CPU做训练,最近手上多了台单卡1080Ti显卡主机,于是开始研究GPU训练。用GPU训练一定会使用CUDA了,刚开始接触CUDA非常非常头痛,对小白很不友好,我几乎整了整整一天,中途想放弃过很多次,最后终于弄好了,回头看看其实不是很难,但是网上文章又多又杂,确实让我来回鼓捣了很久,于是写下这篇文章,希望对新入门GPU机去学习,想安装CUDA的朋友们一点帮助,少走弯路,不要像我一样浪费好多时间。新手最难理解的就是CUDA和cuDNN是啥了,以及安装过程,步骤。 这里先简单说一下https://blog.csdn.net/h3c4lenovo/article/details/119003405However, you'd better use Section 5 in the following link to change the PATH

Ubuntu 20.04安装CUDA 11.4, cuDNN 8.24 - 知乎温馨提示:如果你装CUDA是为了安装GPU版本的pytorch,那么其实不用看我下面关于CUDA安装的内容,因为你使用pytorch官网的安装命令,它会自动帮你安装相应的CUDA,但是cuDNN可能还得你手动安装。如果是安装TensorFl…https://zhuanlan.zhihu.com/p/424817205

Bazel

Installing Bazel on Ubuntu - Bazel 3.7.0https://docs.bazel.build/versions/3.7.0/install-ubuntu.html

You should always be cautious with the versions of these packages.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值