해당 글은 Tensorflow 2 Object Detection API tutorial을 참고했습니다.
Anaconda 가상환경 사용하는 방법은 여기에서 확인할 수 있다. (Windows 10)
우선 Tensorflow2 Object Detection API tutorial에서 사용한 버전을 보면 다음과 같다.
Anaconda virtual env 글에서 tensorflow 2.1을 사용했는데, 그 이유는 내 노트북에서 anaconda로 tensorflow-gpu가 설치되는 버전이 2.1이 최대였다.
tensorflow2 버전에 대해서는 뒷부분 Object Detection API를 설치에서 설명을 더 볼 수 있다.
git clone https://github.com/tensorflow/models.git
모델 환경설정과 파라미터를 학습하기 위해 사용됨.
protoc-3.14.0-win64.zip
)C:\Program Files\Google Protobuf
)cd models/research/
protoc object_detection/protos/*.proto --python_out=.
pip install cython
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
models/research/object_detection/packages/tf2/setup.py
파일을 models/research/
로 복사python -m pip install .