当前位置:网站首页>Runtimeerror: object has no attribute NMS error record when using detectron2
Runtimeerror: object has no attribute NMS error record when using detectron2
2022-06-26 09:10:00 【G fruit】
Code environment :
python = 3.6
torch = 1.6.0
torchvision = 0.7.0
cuda = 9.2
detectron2 = 0.4

install torch and torchvision command ( come from pytorch Official website V1.6.0)
conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=9.2 -c pytorch
install detectron2 Command corresponding to the torch1.6.0 edition ( come from detectron2 Official website installation course )
python -m pip install detectron2 -f \
https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.6/index.html
Problems encountered
I have problems evaluating the training model , The evaluation function is detectron2.evaluation.inference_on_dataset(model, data_loader, evaluator)
RuntimeError:
object has no attribute nms:
Filen "/home/scau2/anaconda2/envs/swin-t/lib/python3.6/site-packages/ops/boxes.py", line 40
***
return torch.ops.torchvision.nms(boxes, scores, iou_threshold)
-------------------------<----HERE
'nms' is being compiled since it was called from 'batched_nms'

resolvent
Update code environment :
python = 3.6
torch = 1.7.0
torchvision = 0.8.0
cuda = 9.2
detectron2 = 0.4
install torch and torchvision command ( come from pytorch Official website V1.6.0)
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=9.2 -c pytorch
install detectron2 Command corresponding to the torch1.7.0 edition ( come from detectron2 Official website installation course )
python -m pip install detectron2 -f \
https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.7/index.html
Problem solving !!!
边栏推荐
- 上下架和橱窗推荐如何设置,优化过程需要注意的地方
- [qnx hypervisor 2.2 user manual]12.2 terminology (II)
- 关于小程序tabbar不支持传参的处理办法
- Talk about the development of type-C interface
- Nacos注册表结构和海量服务注册与并发读写原理 源码分析
- Practice is the fastest way to become a network engineer
- yolov5进阶之零环境快速创建及测试
- commonJS和ES6模块化的区别
- Load other related resources or configurations (promise application of the applet) before loading the homepage of the applet
- ThreadLocal
猜你喜欢

Upgrade phpcms applet plug-in API interface to 4.3 (add batch acquisition interface, search interface, etc.)

Data warehouse (3) star model and dimension modeling of data warehouse modeling

ThreadLocal

20220623 getting started with Adobe Illustrator

行为树的基本概念及进阶

【程序的编译和预处理】

Practice is the fastest way to become a network engineer

The solution of positioning failure caused by framework jump

In depth study paper reading target detection (VII) Chinese version: yolov4 optimal speed and accuracy of object detection

行为树 文件说明
随机推荐
[300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (I)
In automated testing, there are three commonly used waiting methods: sleep, implicitly\wait, and expected\u conditions
Phpcms applet interface new universal interface get_ diy. php
百度小程序富文本解析工具bdParse
浅谈一下Type-C接口发展历程
基于SSM的毕业论文管理系统
20220623 getting started with Adobe Illustrator
How to handle the small program tabbar that does not support parameter transfer
PD快充磁吸移動電源方案
简析ROS计算图级
How to set the shelves and windows, and what to pay attention to in the optimization process
微信小程序如何转换成百度小程序
关于小程序tabbar不支持传参的处理办法
phpcms小程序插件api接口升级到4.3(新增批量获取接口、搜索接口等)
Reverse crawling verification code identification login (OCR character recognition)
Machine learning (Part 1)
2021 software university ranking crawler program
Pytorch neural network
【MATLAB GUI】 键盘回调中按键识别符查找表
外部排序和大小堆相关知识