欢迎来到代码驿站!

Python代码

当前位置:首页 > 软件编程 > Python代码

安装不同版本的tensorflow与models方法实现

时间:2021-04-29 10:55:46|栏目:Python代码|点击:

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

还可以直接在网站上下载不同版本的models,下载地址为:https://github.com/tensorflow/models/releases

4. Tensorflow与models版本的对应

Tensorflow版本 models版本 models地址
1.14.0 1.13.0 https://github.com/tensorflow/models/tree/r1.13.0
1.13.1 1.13.0 https://github.com/tensorflow/models/tree/r1.13.0
1.12.0 1.12.0 https://github.com/tensorflow/models/tree/r1.12.0
1.11.0 1.11 https://github.com/tensorflow/models/tree/r1.11
1.10.0 1.10.0 https://github.com/tensorflow/models/tree/r1.10.0
1.9.0 1.9.0 https://github.com/tensorflow/models/tree/r1.9.0
1.8.0 1.8.0 https://github.com/tensorflow/models/tree/r1.8.0
1.7.0 1.7.0 https://github.com/tensorflow/models/tree/r1.7.0
1.6.0 1.6.0 https://github.com/tensorflow/models/tree/r1.6.0
1.5.0 1.4.0 https://github.com/tensorflow/models/tree/r1.4.0
1.4.0 1.4.0 https://github.com/tensorflow/models/tree/r1.4.0

上一篇:Python协程的用法和例子详解

栏    目:Python代码

下一篇:解决django 向mysql中写入中文字符出错的问题

本文标题:安装不同版本的tensorflow与models方法实现

本文地址:http://www.codeinn.net/misctech/110980.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有