ModuleNotFoundError: No module named ‘pycocoevalcap‘

找到pycocoevalcap的开源地址

This repository provides Python 3 support for the caption evaluation metrics used for the MS COCO dataset.
The code is derived from the original repository that supports Python 2.7: https://github.com/tylin/coco-caption.
Caption evaluation depends on the COCO API that natively supports Python 3.

这是一个为MS COCO数据集提供python支持的第三方资源库,原来COCO库是用python2.7编写的,如果想在python3环境下运行,就必须安装pycocoevalcap库。

但是直接使用pip install pycocoevalcap指令安装会报错,找不到资源
解决方法如下:

找到仓库的地址,利用pip通过git地址安装

 pip install "git+https://github.com/salaniz/pycocoevalcap.git"

pycocoevalcap库地址:https://github.com/salaniz/pycocoevalcap
COCO库地址:https://github.com/cocodataset/cocoapi

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
社会演员多的头像社会演员多普通用户
上一篇 2022年5月25日
下一篇 2022年5月25日

相关推荐