当前位置:网站首页>TypeError: Argument ‘angle‘ can not be treated as a double
TypeError: Argument ‘angle‘ can not be treated as a double
2022-07-01 01:33:00 【AI Hao】
Questions as follows :
File "D:\rotation-yolov5-master\detect.py", line 173, in <module>
detect()
File "D:\rotation-yolov5-master\detect.py", line 78, in detect
pred = rotate_non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=True)
File "D:\rotation-yolov5-master\utils\general.py", line 869, in rotate_non_max_suppression
i = nms(boxes, scores)
File "D:\rotation-yolov5-master\utils\general.py", line 797, in nms
rotate_ious = rotate_iou(max_iou_boxes[-1], sort_boxes[1:])
File "D:\rotation-yolov5-master\utils\general.py", line 710, in rotate_iou
r_b1 = get_rotated_coors(box1[i])
File "D:\rotation-yolov5-master\utils\general.py", line 729, in get_rotated_coors
R[:2] = cv2.getRotationMatrix2D(angle=-a*180/math.pi, center=(cx,cy), scale=1)
TypeError: Argument 'angle' can not be treated as a double
resolvent :
take
R[:2] = cv2.getRotationMatrix2D(angle=-a*180/math.pi, center=(cx,cy), scale=1)
Change it to :
R[:2] = cv2.getRotationMatrix2D(angle=float(-a*180/math.pi), center=(cx,cy), scale=1)
边栏推荐
- Institute of Microbiology, commonly used biochemical reactions in microbiological testing
- TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to
- 一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
- Neo4j installation, operation, project construction and function realization
- Open3D 点云颜色渲染
- 系统设置大页
- [stack] 921 Minimum Add to Make Parentheses Valid
- StrictMode带来的思考-StrictMode原理(5)
- 1175. Prime Arrangements
- One of the basics - overview of sta Basics
猜你喜欢
gin_gorm
测试必备工具-Postman实战教程
Call the classic architecture and build the model based on the classic
流批一体在京东的探索与实践
The liquor and tourism sector recovers, and Yaduo continues to dream of listing. How far is it from "the first share of the new accommodation economy"?
Complete software development process
基础知识之三——标准单元库
基础知识之二——STA相关的基本定义
New opportunities for vr/ar brought by metauniverse
关于白盒测试,这些技巧你得游刃有余~
随机推荐
Opencv basic operation 2 realizes label2rgb and converts gray-scale images into color images
【动态规划】路径dp:931. Minimum Falling Path Sum
Uniapp official component clicking item is invalid, solution
Open3d point cloud bounding box
Open3D 点云颜色渲染
Chromatic judgement bipartite graph
测试必备工具—Postman实战教程
微生物检测,土壤微生物的作用有哪些?
3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description
Applet Custom Grid
系统设置大页
软件测试的可持续发展,必须要学会敲代码?
[Qt5 tab] tab label and content hierarchical analysis
Draw some interesting figures with flutter's canvas
面对产业互联网的时候,甚至还用消费互联网的方式和方法去落地和实践产业互联网
Basic knowledge II - Basic definitions related to sta
二季度最后一天
WIN11中MathType编辑中“打开数学输入面板”是灰色不可编辑
About vctk datasets
The liquor and tourism sector recovers, and Yaduo continues to dream of listing. How far is it from "the first share of the new accommodation economy"?