安裝不同版本的tensorflow與models方法實(shí)現(xiàn)
1. 安裝tensorflow教程
使用pip可以快速便捷的安裝tensorflow各個(gè)版本。
代碼如下:
pip install tensorflow-gpu==1.14.0 #the 1.14.0 can change to other versions
2. Tensorflow與cuda版本對(duì)照
在安裝tensorflow時(shí)需要注意,不同版本的cuda安裝tensorflow的版本是有限制的,其對(duì)照關(guān)系如下:
3. 安裝tensorflow/models教程
當(dāng)需要使用tensorflow objection detection API時(shí),需要下載models。不同版本的tensorflow對(duì)應(yīng)不同版本的models。
先下載models
git clone https://github.com/tensorflow/models
下載的models默認(rèn)是最新版本的models,如果tensorflow不是最新版本,可能存在不兼容的問題,因此需要對(duì)版本進(jìn)行修改。
cd models git checkout r1.13.0 #change the models version to version1.13.0
還可以直接在網(wǎng)站上下載不同版本的models,下載地址為:https://github.com/tensorflow/models/releases
4. Tensorflow與models版本的對(duì)應(yīng)
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 |
到此這篇關(guān)于安裝不同版本的tensorflow與models方法實(shí)現(xiàn)的文章就介紹到這了,更多相關(guān)安裝不同版本的tensorflow與models內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Python調(diào)用.net動(dòng)態(tài)庫實(shí)現(xiàn)過程解析
這篇文章主要介紹了Python調(diào)用.net動(dòng)態(tài)庫實(shí)現(xiàn)過程解析,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-06-06python數(shù)據(jù)庫編程 ODBC方式實(shí)現(xiàn)通訊錄
這篇文章主要為大家詳細(xì)介紹了python數(shù)據(jù)庫編程,ODBC方式實(shí)現(xiàn)通訊錄,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2020-03-03Python模塊MarkupPy與自定義html報(bào)告詳解
MarkupPy是Python模塊用于生成HTML和XML格式的字符串,它的主要作用是提供了一種比原生HTML/XML更加易讀和易寫的編寫方式,通過Python代碼來生成HTML或XML代碼,這篇文章主要介紹了Python模塊MarkupPy&自定義html報(bào)告的相關(guān)知識(shí),需要的朋友可以參考下2023-07-07Windows中使用wxPython和py2exe開發(fā)Python的GUI程序的實(shí)例教程
wxPython是一款集成了Python的圖形化類庫的工具,而py2exe是一款將Python程序轉(zhuǎn)換為exe可執(zhí)行文件的程序,二者搭配可以輕松地在Windows中創(chuàng)建圖形化程序,這里我們就來學(xué)習(xí)Windows中使用wxPython和py2exe開發(fā)Python的GUI程序的實(shí)例教程:2016-07-07python實(shí)現(xiàn)telnet客戶端的方法
這篇文章主要介紹了python實(shí)現(xiàn)telnet客戶端的方法,分析了Python中telnetlib模塊實(shí)現(xiàn)telnet操作的方法,并實(shí)例敘述了Telnet客戶端的實(shí)現(xiàn)技巧,需要的朋友可以參考下2015-04-04Django如何防止定時(shí)任務(wù)并發(fā)淺析
這篇文章主要給大家介紹了關(guān)于Django如何防止定時(shí)任務(wù)并發(fā)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家學(xué)習(xí)或者使用Django具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧2019-05-05python中數(shù)組和列表的簡(jiǎn)單實(shí)例
,Python數(shù)據(jù)類型分為很多種,其中包括元組、字典、列表等,下面這篇文章主要給大家介紹了python中數(shù)組和列表使用的相關(guān)資料,以及python列表和Numpy數(shù)組的區(qū)別,需要的朋友可以參考下2022-03-03python的numpy模塊安裝不成功簡(jiǎn)單解決方法總結(jié)
這篇文章主要介紹了python的numpy模塊安裝不成功簡(jiǎn)單解決方法總結(jié),分享了四種python模塊導(dǎo)入不成功的解決方法,具有一定借鑒價(jià)值,需要的朋友可以參考下。2017-12-12