bubbliiiing / yolov4-tf2

这是一个yolo4-tf2(tensorflow2)的源码,可以用于训练自己的模型。
MIT License
314 stars 111 forks source link

如何进行批量测试?麻烦您了 #33

Open lilili666-hit opened 2 years ago

bubbliiiing commented 2 years ago

里面有

lilili666-hit commented 2 years ago

您好 请问您知道如何进行该程序的模型剪枝吗?

lilili666-hit commented 2 years ago

您好请问冻结249层是冻结整体网络中哪些部分,是darknetbody部分吗

bubbliiiing commented 2 years ago

1、我没有剪枝的代码 2、主干的部分的

lilili666-hit commented 2 years ago

你好 为什么保存视频时会出现这个错误 cv2.error: OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' 我看了路径是对的

bubbliiiing commented 2 years ago

这个问题不影响保存的应该。路径写对就可以

lilili666-hit commented 2 years ago

但是测试完成后得到的.mp4文件打不开

bubbliiiing commented 2 years ago

重下一下代码吧……现在没有你这个报错了

lilili666-hit commented 2 years ago

请问这个eager=true 或者 false 有什么区别吗

bubbliiiing commented 2 years ago

tf2有个eager模式,一个使用keras的fit训练

lilili666-hit commented 2 years ago

麻烦您 我想请教您一个问题,针对无人机航拍这种地面车辆检测您有什么好的方法推荐吗?或者是多种小目标检测的方法您有哪个模型可以推荐吗?

bubbliiiing commented 2 years ago

yolo效果如何啊

lilili666-hit commented 2 years ago

我试了yolov4和centernet,效果不是特别理想,就算检测到框但是概率偏低。

lilili666-hit commented 2 years ago

并且我看了一下视频的检测效果,经常错误检测其他物体

bubbliiiing commented 2 years ago

视频检测存在模糊的问题,会误检测

bubbliiiing commented 2 years ago

无人机航拍目标比较小,设置一下先验框?

lilili666-hit commented 2 years ago

这个先验框我就是用您之前的程序生成的,这个有什么好的改进方式吗

------------------ 原始邮件 ------------------ 发件人: "bubbliiiing/yolov4-tf2" @.>; 发送时间: 2021年11月25日(星期四) 下午3:51 @.>; @.**@.>; 主题: Re: [bubbliiiing/yolov4-tf2] 如何进行批量测试?麻烦您了 (Issue #33)

无人机航拍目标比较小,设置一下先验框?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

lilili666-hit commented 2 years ago

或者您可以推荐我一些改进方式吗针对这种小目标检测的,之前试了cbam 和aspp 但是效果没有什么改变

------------------ 原始邮件 ------------------ 发件人: "bubbliiiing/yolov4-tf2" @.>; 发送时间: 2021年11月25日(星期四) 下午3:51 @.>; @.**@.>; 主题: Re: [bubbliiiing/yolov4-tf2] 如何进行批量测试?麻烦您了 (Issue #33)

视频检测存在模糊的问题,会误检测

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

bubbliiiing commented 2 years ago

试试efficientdet看看?它有密集采样

lilili666-hit commented 2 years ago

好的好的 谢谢您

------------------ 原始邮件 ------------------ 发件人: "bubbliiiing/yolov4-tf2" @.>; 发送时间: 2021年11月25日(星期四) 下午4:01 @.>; @.**@.>; 主题: Re: [bubbliiiing/yolov4-tf2] 如何进行批量测试?麻烦您了 (Issue #33)

试试efficientdet看看?它有密集采样

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

lilili666-hit commented 2 years ago

您好 如何在测试时候的检测框上添加前缀 比如像 Type:car   

bubbliiiing commented 2 years ago

有例子吗,听不太懂

lilili666-hit commented 2 years ago

老师 请教您个问题,像您编写的这个代码可以部署在硬件直接进行实时检测吗?比如在jetson nano上

bubbliiiing commented 2 years ago

0 0好像不太行 tiny可能可以

lilili666-hit commented 2 years ago

老师 我想请教您一个问题。就是我是用jetson nano部署您的v4-tiny模型,在使用摄像头实时测试推理过程,发现有2秒左右的延迟,例如:当前使用摄像头对准一个人,大概需要过2秒多的时间屏幕上才会显示检测结果(人+检测框),请问您知道是什么原因嘛?我使用的是csi摄像头

bubbliiiing commented 2 years ago

0 0不知道啊……你测一下fps看看

lilili666-hit commented 2 years ago

老师 请问这个代码您在使用摄像头进行测试时会产生延迟的情况吗

bubbliiiing commented 2 years ago

你的下显卡不行则会

lilili666-hit commented 2 years ago

老师 您这个代码 还有哪些部分可以改进来提升实时检测时的速度,因为我现在用nano进行实时检测 始终没找到会产生2s延迟的原因。

bubbliiiing commented 2 years ago

你的fsp多少?

bubbliiiing commented 2 years ago

fps

lilili666-hit commented 2 years ago

大概在7~9

bubbliiiing commented 2 years ago

那确实太慢了,积攒起来就是2秒左右……毕竟一秒读取到的图是30帧

lilili666-hit commented 2 years ago

老师请教您一个问题,您的代码可以进行红外图像目标识别嘛

bubbliiiing commented 2 years ago

只能jpg 三通道……