CLIPScore: A Reference-free Evaluation Metric for Image Captioning 代码执行踩坑记录

CLIPScore: A Reference-free Evaluation Metric for Image Captioning 代码执行踩坑记录,第1张

CLIPScore: A Reference-free Evaluation Metric for Image Captioning 代码执行踩坑记录 环境配置

配置CLIP环境:

$ conda install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.0
$ pip install ftfy regex tqdm
$ pip install git+https://github.com/openai/CLIP.git

链接:https://github.com/openai/CLIP

配置COCOCaption Evaluation环境

pip install git+https://github.com/jmhessel/pycocoevalcap

链接:https://github.com/jmhessel/pycocoevalcap

踩坑记录 ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’ (/root/anaconda3/envs/clip/lib/python3.7/site-packages/PIL/init.py)
conda install pillow=6.1


参考链接:https://github.com/python-pillow/Pillow/issues/4130

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/800708.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-07
下一篇2022-05-07

发表评论

登录后才能评论

评论列表(0条)

    保存