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