安裝不同版本的tensorflow與models方法實現(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的版本是有限制的,其對照關系如下:

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
還可以直接在網(wǎng)站上下載不同版本的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 |
到此這篇關于安裝不同版本的tensorflow與models方法實現(xiàn)的文章就介紹到這了,更多相關安裝不同版本的tensorflow與models內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
Python讀取Hive數(shù)據(jù)庫實現(xiàn)代碼詳解
這篇文章主要介紹了Python讀取Hive數(shù)據(jù)庫實現(xiàn)代碼,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2023-03-03
Pytorch distributed 多卡并行載入模型操作
這篇文章主要介紹了Pytorch distributed 多卡并行載入模型操作,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2021-06-06
在Django下測試與調(diào)試REST API的方法詳解
今天小編就為大家分享一篇在Django下測試與調(diào)試REST API的方法詳解,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-08-08
python?pycharm中使用opencv時沒有代碼自動補全提示的解決方案
我們在使用pycharm的時候總是很喜歡其強大的代碼提示功能,下面這篇文章主要給大家介紹了關于python?pycharm中使用opencv時沒有代碼自動補全提示的解決方案,需要的朋友可以參考下2022-09-09

