github總地址:https://github.com/tensorflow/models
目標(biāo)檢測(cè)地址:https://github.com/tensorflow/models/tree/master/research/object_detection!
這里選擇tensorflow2的版本安裝归敬,會(huì)跳轉(zhuǎn)到下面目錄:
第一步,先克隆整個(gè)庫(kù)到本地(沒有g(shù)it,先安裝):
git clone https://github.com/tensorflow/models.git
第二步跟畅,選擇Python Package Installation安裝:
# 進(jìn)入research目錄執(zhí)行下面操作
cd models/research
# 編譯protos(沒有protobuf-compiler需要先安裝).
protoc object_detection/protos/*.proto --python_out=.
# 安裝需要的python庫(kù)
cp object_detection/packages/tf2/setup.py .
python -m pip install --use-feature=2020-resolver .
最后彪标,安裝完成測(cè)試:
python object_detection/builders/model_builder_tf2_test.py