当前位置:网站首页>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 !!!
边栏推荐
- 如何编译构建
- Mongodb分片环境搭建和验证(redis期末大作业)
- 基于SSM的电脑商城
- Implementation code of interceptor and filter
- [program compilation and pretreatment]
- 编辑类型信息
- 实践是成为网工最快的方法,网络工程师实战项目整理
- 教程1:Hello Behaviac
- Load other related resources or configurations (promise application of the applet) before loading the homepage of the applet
- cookie session 和 token
猜你喜欢

phpcms小程序插件教程网站正式上线
![[Matlab GUI] key ID lookup table in keyboard callback](/img/b6/8f62ff4ffe09a5320493cb5d834ff5.png)
[Matlab GUI] key ID lookup table in keyboard callback

实践是成为网工最快的方法,网络工程师实战项目整理

Regular Expression 正则表达式

Yolov5 advanced 4 train your own data set

Phpcms mobile station module implements custom pseudo static settings

Practice is the fastest way to become a network engineer

dedecms小程序插件正式上线,一键安装无需任何php或sql基础

Yolov5 advanced 5 GPU environment setup

51单片机ROM和RAM
随机推荐
Code de mise en œuvre de l'intercepteur et du filtre
Slider verification - personal test (JD)
HDU - 6225 little boxes (\u int128)
Course paper: Copula modeling code of portfolio risk VaR
行为树 文件说明
[qnx hypervisor 2.2 user manual]12.2 terminology (II)
Phpcms V9 adds the reading amount field in the background, and the reading amount can be modified at will
Applet realizes picture preloading (picture delayed loading)
Vipshop work practice: Jason's deserialization application
Phpcms V9 remove the phpsso module
1.26 pytorch learning
ImportError: ERROR: recursion is detected during loading of “cv2“ binary extensions. Check OpenCV in
Yolov5 advanced 5 GPU environment setup
远程工作的一些命令
Chargement à chaud du fichier XML de l'arbre de comportement
In depth study paper reading target detection (VII) Chinese version: yolov4 optimal speed and accuracy of object detection
Solution to the encoding problem encountered by the crawler when requesting get/post
教程1:Hello Behaviac
[program compilation and pretreatment]
Lagrange multiplier method