Install TensorFlow Object Detection API

本文最后更新于:2020年11月9日 晚上

This Blog is writing for TensorFlow Object Detection API Installation on Win10.

1. Install TensorFlow

Before install TF. Make sure CUDA and cdDNN has been installed successfully. Check the system environment has been set correctly.

Verify the installation

python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"

If warning Could not load dynamic library 'cudnn64_7.dll' copy the file to CUDA\bin.

2. Install Object Detection API

Clone the TensorFlow Models repository and proceed to one of the installation options.

git clone https://github.com/tensorflow/models.git

Get the Proto Tool. Find the win64.zip in GitHub release packages.

https://github.com/protocolbuffers/protobuf/releases

Unzip the files to Tool folder, and add the Tool/protoc*/bin to the system environment path.

Install API

# From within TensorFlow/models/research/
Get-ChildItem object_detection/protos/*.proto | foreach {protoc "object_detection/protos/$($_.Name)" --python_out=.}

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!