安装不同版本的tensorflow与models

1. 安装tensorflow教程

使用pip可以快速便捷的安装tensorflow各个版本。
代码如下:

pip install tensorflow-gpu==1.14.0  #the 1.14.0 can change to other versions

2. Tensorflow与cuda版本对照

在安装tensorflow时需要注意,不同版本的cuda安装tensorflow的版本是有限制的,其对照关系如下:
在这里插入图片描述

3. 安装tensorflow/models教程

  • 当需要使用tensorflow objection detection API时,需要下载models。不同版本的tensorflow对应不同版本的models。
  • 先下载models
git clone https://github.com/tensorflow/models
  • 下载的models默认是最新版本的models,如果tensorflow不是最新版本,可能存在不兼容的问题,因此需要对版本进行修改。
cd models
git checkout r1.13.0  #change the models version to version1.13.0

4. Tensorflow与models版本的对应

Tensorflow版本models版本models地址
1.14.01.13.0https://github.com/tensorflow/models/tree/r1.13.0
1.13.11.13.0https://github.com/tensorflow/models/tree/r1.13.0
1.12.01.12.0https://github.com/tensorflow/models/tree/r1.12.0
1.11.01.11https://github.com/tensorflow/models/tree/r1.11
1.10.01.10.0https://github.com/tensorflow/models/tree/r1.10.0
1.9.01.9.0https://github.com/tensorflow/models/tree/r1.9.0
1.8.01.8.0https://github.com/tensorflow/models/tree/r1.8.0
1.7.01.7.0https://github.com/tensorflow/models/tree/r1.7.0
1.6.01.6.0https://github.com/tensorflow/models/tree/r1.6.0
1.5.01.4.0https://github.com/tensorflow/models/tree/r1.4.0
1.4.01.4.0https://github.com/tensorflow/models/tree/r1.4.0
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值