当前位置:网站首页>配置历史版本Detectron遇到的问题
配置历史版本Detectron遇到的问题
2022-07-23 05:44:00 【cg101202】
背景
最近想测试一个目标检测模型CBNet,该模型是基于Detectron改写的,但是又不是最新的Detectron,属于历史版本。
众所周知,Detectron基于caffe2,所以先得安装caffe2。官网有多种安装方式,常用 源码安装或者conda预构建包安装。
遇到的问题
因为以前源码编译过,这次想偷个懒用conda直接安装caffe2(其实就是安装pytorch,后来整合进去了),然后按Detectron的官方安装教程把Detectron也装好了,最后卡在测试的时候,总是报下面那个错误:
AssertionError: Detectron ops lib not found; make sure that your Caffe2 version includes Detectron module
分析
错误让我很纳闷,都是按照官方教程一步一步配置的怎么会出问题,一直怀疑是我中间搞错了,还重来了一遍,依旧有问题。后来反应过来去查错误,发现是小bug,最新版本的Detectron不会有这个问题(自己还傻愣测试了一下!)。
根本原因是conda直接安装的pytorch包的libcaffe2_detectron_ops_gpu.so在torch/lib目录下,而老版本的Detectron只检索了lib目录,所以根本找不到,但源码构建caffe2不会出这个问题。
解决方案
把新版本的代码替换老版本,参考Link。
总结
一些基于老框架的代码,多多少少会有版本问题。当遇到的错误,你有点不解时,赶紧到相关repo的issues下面去找,一般都能找到解决方案,节省时间!!!
边栏推荐
- 高等代数100道题及答案解析
- 高电压技术学习总结
- 【AUTOSAR之FEE(非易失存储器Flash与Eeprom区别)】
- Blog Building III: comment system selection
- [talent column] can't you use Apache dolphin scheduler? It takes a month to write the most comprehensive introductory teaching [2]
- Using pycaret: low code, automated machine learning framework to solve regression problems
- 钢结构复习题
- 硬件知識1--原理圖和接口類型(基於百問網硬件操作大全視頻教程)
- Data analysis (I)
- 【学习总结】
猜你喜欢

单片机学习笔记7--SysTick定时器(基于百问网STM32F103系列教程)

【存储器了解 RAM flash和eeprom存储器的区别和作用】

钢结构基本原理复习

Analyze the pre integration of vio with less rigorous but logical mathematical theory

Blog building six: the method of binding your own domain name

【AUTOSAR COM 1.通信协议栈介绍】

Questions and answers of basic principles of steel structure

高分子物理名词解释归纳

钢结构复习题

Data analysis of time series (II): Calculation of data trend
随机推荐
输入三角形边长,求面积
Importance of data analysis
Interpretation of the paper: develop and verify the deep learning system to classify the etiology of macular hole and predict the anatomical results
硬件知識1--原理圖和接口類型(基於百問網硬件操作大全視頻教程)
[AUTOSAR candrive 2. understand the mapping relationship between communication HOH, canid and pduid]
[AUTOSAR CP general 1. how to read AUTOSAR official documents]
5.4 installation and use of pyinstaller Library
Interpretation of the paper: DNA enhancer sequence recognition transformer structure based on Bert and two-dimensional convolutional neural network
博客搭建五:图床选择
把LVGL所有控件整合到一个工程中展示(LVGL6.0版本)
常见的排序方法—选择排序
[learning summary]
Blog Building III: comment system selection
求矩阵的鞍点及其对应的下标。
【AUTOSAR COM 2.通信协议栈进阶介绍】
Interpretation of the paper: "bert4bitter: a basic model for improving bitter peptide prediction based on transformer (BERT) bidirectional encoder representation"
Interpretation of the paper: "i4mc deep: intelligent prediction of N4 methylcytosine sites using deep learning methods with chemical properties"
[introduction to AUTOSAR com 4.com service layer module]
Tips for using textviewdidchange of uitextview
LVGL8.1版本笔记