RegionClip环境安装踩坑指南

RegionClip环境安装

RegionClip环境安装)

复制代码
特别强调,不要单独去安装detectron2,会出现model.clip不存在的错误,通过python -m pip install -e RegionCLIP就可以

问题1

复制代码
问题:torch-cuda版本不一致无法通过
解决:pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

问题2

复制代码
问题2: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'RegionCLIP'
解决:降低setuptools版本 如:pip install setuptools==59.0.1 参考:https://github.com/microsoft/RegionCLIP/issues/60

问题3

复制代码
问题:torch版本和cuda版本不一致
解决:一起指定安装:pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

问题4

复制代码
问题:KeyError: 'Non-existent config key: MODEL.CLIP'
解决:使用方法安装
git clone git@github.com:microsoft/RegionCLIP.git
python -m pip install -e RegionCLIP

问题5

复制代码
问题:AttributeError: module 'PIL.Image' has no attribute 'LINEAR'
解决:降低Pillow版本,如:pip install Pillow==8.4.0
相关推荐
万邦科技Lafite31 分钟前
利用淘宝开放API接口监控商品状态,掌握第一信息
大数据·python·电商开放平台·开放api接口·淘宝开放平台
Hy行者勇哥2 小时前
Python 与 VS Code 结合操作指南
开发语言·python
大力水手(Popeye)2 小时前
Pytorch——tensor
人工智能·pytorch·python
飞翔的佩奇7 小时前
【完整源码+数据集+部署教程】表盘指针检测系统源码和数据集:改进yolo11-CA-HSFPN
python·yolo·计算机视觉·数据集·yolo11·表盘指针检测
larance7 小时前
SQLAlchemy 的异步操作来批量保存对象列表
数据库·python
搏博8 小时前
基于Python3.10.6与jieba库的中文分词模型接口在Windows Server 2022上的实现与部署教程
windows·python·自然语言处理·flask·中文分词
lxmyzzs9 小时前
pyqt5无法显示opencv绘制文本和掩码信息
python·qt·opencv
萧鼎10 小时前
Python pyzmq 库详解:从入门到高性能分布式通信
开发语言·分布式·python
yujkss10 小时前
Python脚本每天爬取微博热搜-终版
开发语言·python
yzx99101310 小时前
小程序开发APP
开发语言·人工智能·python·yolo