-
Notifications
You must be signed in to change notification settings - Fork 41
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
WongKinYiu/PyTorch_YOLOv4-tiny,自己数据集,类别数为1,推理加速后目标上有很多框,该怎么处理? #29
Comments
你看看是不是这个情况#17
|
感谢回复!我尝试过那个方法,但是不行。这是我的 cfg、yololayer.h 文件和权重文件 yolov4-tiny+tensorrt.zip。 |
试试将yololayer.cu中188~191改成: |
非常感谢!修改后识别效果很好,起作用了。[抱拳][抱拳][抱拳] |
感谢回复!可以实现直接对视频进行推理吗?如果需要修改您的代码来达到这个目的,我该在哪个文件里哪个部分进行修改呢? |
可以,通过OpenCV VideoCapture读每一帧得到cv::Mat,等效cv::imread读一张图像得到cv::Mat |
请问是在 yolov4-tiny.cpp 的 main 函数里进行修改吗?具体修改位置是?
|
I have the same question. Can you give some guidelines on how to modify it? @tjuskyzhang |
您好!我使用您的方法yolov4-tiny-tensorrt 、您的百度网盘里的pt 和 cfg 文件,可以生成 wts、engine,执行 ./yolov4-tiny -d ../samples 命令后生成的图片正常,每个目标上只有一个框。
但当我使用训练好的WongKinYiu/PyTorch_YOLOv4-tiny时,使用我的 pt和cfg文件生成wts、engine后,对我自己的部分数据集图片进行推理时,生成的图片上每个目标会有多个框,就像这样 picture。我该如何做?
期待您的回复!
The text was updated successfully, but these errors were encountered: