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
相关推荐
SunnyDays10111 小时前
如何使用Python高效转换Excel到HTML
python·excel转html
Q_Q5110082851 小时前
python+django/flask的在线学习系统的设计与实现 积分兑换礼物
spring boot·python·django·flask·node.js·php
AI人工智能+2 小时前
告别手动录入:文档抽取技术如何让RPA处理非结构化数据?
nlp·ocr·rpa·文档抽取
Q_Q5110082852 小时前
python+django/flask的车辆尾气检测排放系统-可视化大屏展示
spring boot·python·django·flask·node.js·php
汤姆yu2 小时前
2026版基于python大数据的旅游可视化及推荐系统
python·旅游·大数据旅游
angleoldhen3 小时前
简单的智能数据分析程序
python·信息可视化·数据分析
youzj09253 小时前
docker网站配置
python
snowfoootball4 小时前
python函数及面向过程高级特性
开发语言·python
DP+GISer4 小时前
基于站点数据进行遥感机器学习参数反演-以XGBOOST反演LST为例(附带数据与代码)试读
人工智能·python·机器学习·遥感与机器学习
工业互联网专业5 小时前
基于协同过滤算法的小说推荐系统_django+spider
python·django·毕业设计·源码·课程设计·spider·协同过滤算法