參考官方文檔:https://tensorflow.google.cn/hub/tutorials/tf2_object_detectionpython
如下爲安裝腳本:git
git clone https://github.com/tensorflow/models.git cd models/research protoc object_detection/protos/*.proto --python_out=. cp object_detection/packages/tf2/setup.py . python -m pip install --use-feature=2020-resolver .