How to use pycocotools - Raidin/deeplearning-research GitHub Wiki

  • pycocotools setting

    • python library 설치
    $ git clone https://github.com/cocodataset/cocoapi.git
    $ cd cocoapi
    $ cd PythonAPI
    $ python setup.py build_ext install --record uninstall.txt
    $ pip show pycocotools
    
    • python library 설치(setup.py)를 통해 설치 한 경우 삭제 방법
    $ cd cocoapi/PythonAPI
    $ cat uninstall.txt | xargs rm -rf
    
    • library 설치 없이 source level로 사용
    import sys
    sys.path.insert(0, 'path to cocoapi')
    
  • MSCoCo Dataset Format

  • pycocotools 사용해서 GT bbox display : BBox Visualize