0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

pycocotoolsをgithubのソースコードからインストールするときに気を付けること

Last updated at Posted at 2023-04-28

githubからソースコードをcloneする前にしておくこと

以下のコマンドで必要なライブラリをインストールしておく

$ pip install numpy matplotlib cython 

pycocotoolsをインストールする

  1. githubからcloneする
素のcocoapiが欲しい人
$ git clone https://github.com/cocodataset/cocoapi.git

YoutubeVISが必要な人
$ git clone https://github.com/youtubevos/cocoapi.git
  1. 以下のコマンドを実行する
$ cd cocoapi/PythonAPI
$ python setup.py build_ext --inplace
$ python setup.py build_ext install

インストールできたか確認する

$ pip list
...
...
pycocotools
...
...
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?