安裝不同版本的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不是最新版本,可能存在不兼容的問(wèn)題,因此需要對(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實(shí)現(xiàn)一鍵隱藏屏幕并鎖定輸入
本文主要介紹了使用 Python 編寫(xiě)一個(gè)一鍵隱藏屏幕并鎖定輸入的黑科技程序,能夠在指定熱鍵觸發(fā)后立即遮擋屏幕,并禁止一切鍵盤(pán)鼠標(biāo)輸入,這樣就再也不用擔(dān)心自己的屏幕被人偷看啦2025-04-04
Python讀取Hive數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼詳解
這篇文章主要介紹了Python讀取Hive數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-03-03
使用python寫(xiě)一個(gè)自動(dòng)瀏覽文章的腳本實(shí)例
今天小編就為大家分享一篇使用python寫(xiě)一個(gè)自動(dòng)瀏覽文章的腳本實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2019-12-12
numba提升python運(yùn)行速度的實(shí)例方法
在本篇文章里小編給大家整理的是一篇關(guān)于numba提升python運(yùn)行速度的實(shí)例方法,有興趣的朋友們可以參考下。2021-01-01
Pytorch distributed 多卡并行載入模型操作
這篇文章主要介紹了Pytorch distributed 多卡并行載入模型操作,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2021-06-06
python中前綴運(yùn)算符 *和 **的用法示例詳解
這篇文章主要介紹了python中前綴運(yùn)算符 *和 **的用法,本文通過(guò)實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友參考下吧2020-05-05
在Django下測(cè)試與調(diào)試REST API的方法詳解
今天小編就為大家分享一篇在Django下測(cè)試與調(diào)試REST API的方法詳解,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2019-08-08
python?pycharm中使用opencv時(shí)沒(méi)有代碼自動(dòng)補(bǔ)全提示的解決方案
我們?cè)谑褂胮ycharm的時(shí)候總是很喜歡其強(qiáng)大的代碼提示功能,下面這篇文章主要給大家介紹了關(guān)于python?pycharm中使用opencv時(shí)沒(méi)有代碼自動(dòng)補(bǔ)全提示的解決方案,需要的朋友可以參考下2022-09-09

