找到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