-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
detector.py问题 #3
Comments
opencv版本换到4.4
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: ZJUT_miki <notifications@github.com>
发送时间: 2021年1月4日 11:01
收件人: BossZard/rotation-yolov5 <rotation-yolov5@noreply.github.com>
抄送: Subscribed <subscribed@noreply.github.com>
主题: 回复:[BossZard/rotation-yolov5] detector.py问题 (#3)
你好,你的这个项目很有参考价值。我使用了你的旋转框yolov5,我下载了你的权重文件,当我运行detect.py文件时,存在以下问题,请问怎么解决呢
/home/miki/anaconda3/envs/yolov5/bin/python /home/miki/project/object_detection/rotation-yolov5/detect.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.4, device='', img_size=1024, iou_thres=0.5, output='inference/output', save_txt=False, source='inference/images', update=False, view_img=False, weights='weights/m-70.pt')
Using CUDA device0 _CudaDeviceProperties(name='GeForce GTX 1050 Ti', total_memory=4036MB)
Fusing layers...
Model Summary: 188 layers, 2.22122e+07 parameters, 0 gradients
image 1/1 /home/miki/project/object_detection/rotation-yolov5/inference/images/1.tif: Traceback (most recent call last):
File "/home/miki/project/object_detection/rotation-yolov5/detect.py", line 174, in
detect()
File "/home/miki/project/object_detection/rotation-yolov5/detect.py", line 79, in detect
pred = rotate_non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=True)
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 869, in rotate_non_max_suppression
i = nms(boxes, scores)
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 798, in nms
rotate_ious = rotate_iou(max_iou_boxes[-1], sort_boxes[1:])
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 710, in rotate_iou
r_b1 = get_rotated_coors(box1[i])
File "/home/miki/project/object_detection/rotation-yolov5/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
Process finished with exit code 1
希望能得到你的回复,谢谢!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
抱歉,说错了,是4.2.0.34
…------------------ 原始邮件 ------------------
发件人: "BossZard/rotation-yolov5" <notifications@github.com>;
发送时间: 2021年1月4日(星期一) 下午3:17
收件人: "BossZard/rotation-yolov5"<rotation-yolov5@noreply.github.com>;
抄送: "梁同学"<804072710@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [BossZard/rotation-yolov5] detector.py问题 (#3)
你好,我的opencv就是4.4,可是不行,你可以再看看嘛
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
好的,非常感谢 |
我用opencv4.2解决了这个问题,但是我还是想问一下,为啥4.4不行,这是有什么差别嘛,我找不到原因 |
建议可以自己读一下报错,好像是这个函数新版本opencv不支持double类型的计算
…------------------ 原始邮件 ------------------
发件人: "BossZard/rotation-yolov5" <notifications@github.com>;
发送时间: 2021年1月4日(星期一) 晚上9:06
收件人: "BossZard/rotation-yolov5"<rotation-yolov5@noreply.github.com>;
抄送: "梁同学"<804072710@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [BossZard/rotation-yolov5] detector.py问题 (#3)
我用opencv4.2解决了这个问题,但是我还是想问一下,为啥4.4不行,这是有什么差别嘛,我找不到原因
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
已经解决,非常感谢! |
请教一下,我自己训练DOTA1.5数据集后使用detect.py显示general这行代码报错,这个xy不知道是怎么来的。 Fusing layers... Process finished with exit code 1 |
我也遇到了这个问题,还有我的训练过程box的loss一直下不去,请问你有这个问题吗? |
你好,我也遇到用DOTA的测试集不裁切,直接detect的.py。提示没有xy。请问你解决了吗 |
您好,同样的问题,box的损失一直下不去,检测的时候也出现了AttributeError: 'list' object has no attribute 'xy'的错误,请问这个问题您解决了吗?方便提供一下解决思路吗,谢谢 |
我在预测的时候遇到这个问题是为什么呢? |
你好,你的这个项目很有参考价值。我使用了你的旋转框yolov5,我下载了你的权重文件,当我运行detect.py文件时,存在以下问题,请问怎么解决呢
/home/miki/anaconda3/envs/yolov5/bin/python /home/miki/project/object_detection/rotation-yolov5/detect.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.4, device='', img_size=1024, iou_thres=0.5, output='inference/output', save_txt=False, source='inference/images', update=False, view_img=False, weights='weights/m-70.pt')
Using CUDA device0 _CudaDeviceProperties(name='GeForce GTX 1050 Ti', total_memory=4036MB)
Fusing layers...
Model Summary: 188 layers, 2.22122e+07 parameters, 0 gradients
image 1/1 /home/miki/project/object_detection/rotation-yolov5/inference/images/1.tif: Traceback (most recent call last):
File "/home/miki/project/object_detection/rotation-yolov5/detect.py", line 174, in
detect()
File "/home/miki/project/object_detection/rotation-yolov5/detect.py", line 79, in detect
pred = rotate_non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=True)
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 869, in rotate_non_max_suppression
i = nms(boxes, scores)
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 798, in nms
rotate_ious = rotate_iou(max_iou_boxes[-1], sort_boxes[1:])
File "/home/miki/project/object_detection/rotation-yolov5/utils/general.py", line 710, in rotate_iou
r_b1 = get_rotated_coors(box1[i])
File "/home/miki/project/object_detection/rotation-yolov5/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
Process finished with exit code 1
希望能得到你的回复,谢谢!
The text was updated successfully, but these errors were encountered: