githubからソースコードをcloneする前にしておくこと
以下のコマンドで必要なライブラリをインストールしておく
$ pip install numpy matplotlib cython
pycocotoolsをインストールする
- githubからcloneする
素のcocoapiが欲しい人
$ git clone https://github.com/cocodataset/cocoapi.git
YoutubeVISが必要な人
$ git clone https://github.com/youtubevos/cocoapi.git
- 以下のコマンドを実行する
$ cd cocoapi/PythonAPI
$ python setup.py build_ext --inplace
$ python setup.py build_ext install
インストールできたか確認する
$ pip list
...
...
pycocotools
...
...