
配置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
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)