相关文章推荐
大方的香烟  ·  centos7,Python2.7安装req ...·  1 月前    · 
酷酷的酱牛肉  ·  ModuleNotFoundError: ...·  1 月前    · 
独立的柠檬  ·  react.js - ...·  1 年前    · 
勤奋的鸭蛋  ·  git reset revert ...·  1 年前    · 
pip install pycocotools


出现如下bug,则:

File "/...../lib/python3.6/site-packages/pycocotools/coco.py", line 308, in loadRes
if type(resFile) == str or type(resFile) == unicode:

NameError: name 'unicode' is not defined

解决:pip install -U 'git+ https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI '