项目场景:
想使用CLIP预训练模型进行图像特征提取,需要安装clip包,python库源中没有clip包,不能直接使用pip install clip,而是需要再GitHub上下载源码包。
问题描述
安装clip 时,需要通过下载clip.git进行安装,命令为:
pip install git+https://github.com/openai/CLIP.git
其中后面网址是我们需要下载的包网址,这里CLIP网址为https://github.com/openai/CLIP
一般会出现如下错误:
error:subprocess-exited-with-error
原因分析:
原因可能是网速问题