安裝不同版本的tensorflow與models方法實(shí)現(xiàn)
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的版本是有限制的,其對照關(guān)系如下:
3. 安裝tensorflow/models教程
當(dāng)需要使用tensorflow objection detection API時,需要下載models。不同版本的tensorflow對應(yīng)不同版本的models。
先下載models
git clone https://github.com/tensorflow/models
下載的models默認(rèn)是最新版本的models,如果tensorflow不是最新版本,可能存在不兼容的問題,因此需要對版本進(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版本的對應(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)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Python調(diào)用.net動態(tài)庫實(shí)現(xiàn)過程解析
這篇文章主要介紹了Python調(diào)用.net動態(tài)庫實(shí)現(xiàn)過程解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-06-06python數(shù)據(jù)庫編程 ODBC方式實(shí)現(xiàn)通訊錄
這篇文章主要為大家詳細(xì)介紹了python數(shù)據(jù)庫編程,ODBC方式實(shí)現(xiàn)通訊錄,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下2020-03-03Windows中使用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-04python的numpy模塊安裝不成功簡單解決方法總結(jié)
這篇文章主要介紹了python的numpy模塊安裝不成功簡單解決方法總結(jié),分享了四種python模塊導(dǎo)入不成功的解決方法,具有一定借鑒價值,需要的朋友可以參考下。2017-12-12