import coco
# from samples.coco import coco
config = coco.cocoConfig()
COCO_DIR = "/Users/anusha/Desktop/MLANusha/coco/val2017"配置回溯(最近一次调用)1导入coco 2#从samples.coco导入coco ->3CONFIG= coco.cocoConfig() 4 COCO_DIR = "/Users/anusha/Desktop/MLANusha/coco/val2017“
AttributeError:模块'coco‘没有特性'cocoConfig’
发布于 2020-09-29 12:50:17
请按照以下步骤操作:
(复制自github:https://github.com/matterport/Mask_RCNN/issues/1595)
从此链接https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017安装Visual studio生成工具
然后从github git clone https://github.com/cocodataset/cocoapi.git克隆cocoapi存储库。
克隆完成后,转到同一文件夹中的python子目录并运行PythonAPI setup.py install
如果所有这些步骤都进行得很顺利,那么您就可以开始工作了。
或者您可以尝试:!pip安装"git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI“
然后尝试从pycocotools.coco导入COCO导入
https://stackoverflow.com/questions/64112987
复制相似问题