xinhappy1

Results 7 comments of xinhappy1

I have the same problem > How to adjust the thickness and font size of the box marked on the graph during prediction?

> 你好,你是如何将.pt转成.weights的? hi,how do you convert .pt file to .weights file? @rickeyguan > 把训练好的模型.pt转换成.weight,和.cfg .names用到darknet里 测出来的结果和用.pt测的结果相差很大 请问我需要做什么修改吗? > > when I use the .weight file changed from trained .pt file...

> 你看看是不是这个情况#17 > > > 您好!我使用您的方法[yolov4-tiny-tensorrt](https://github.com/tjuskyzhang/Scaled-YOLOv4-TensorRT/tree/master/yolov4-tiny-tensorrt#yolov4-tiny-tensorrt) 、您的百度网盘里的pt 和 cfg 文件,可以生成 wts、engine,执行 ./yolov4-tiny -d ../samples 命令后生成的图片正常,**每个目标上只有一个框**。 但当我使用训练好的[WongKinYiu/PyTorch_YOLOv4-tiny](https://github.com/WongKinYiu/PyTorch_YOLOv4/tree/master)时,使用我的 pt和cfg文件生成wts、engine后,对我自己的部分数据集图片进行推理时,生成的图片上**每个目标会有多个框**,就像这样 [picture](https://github.com/happyboy688/picture/blob/main/_1.jpeg)。我该如何做? 期待您的回复! 感谢回复!我尝试过那个方法,但是不行。这是我的 cfg、yololayer.h 文件和权重文件 [yolov4-tiny+tensorrt.zip](https://github.com/tjuskyzhang/Scaled-YOLOv4-TensorRT/files/10056686/yolov4-tiny%2Btensorrt.zip)。 这是 yololayer.h 部分截图: ![image](https://user-images.githubusercontent.com/82657574/203058412-3e0815c2-ec27-4c76-9a4b-dce7c1315773.png) 这是 cfg 部分截图:...

> 试试将yololayer.cu中188~191改成: det->bbox[0] = (col + Logist(curInput[idx + k * info_len_i * total_grid + 0 * total_grid]) * 2 -0.5) * INPUT_W / yoloWidth; det->bbox[1] = (row + Logist(curInput[idx +...

还有一个问题,我该怎么去推理加速视频文件?我试过 ./yolov4-tiny -d the/path/of/my/video 这个命令,但是报错了。报错信息如下: ![image](https://user-images.githubusercontent.com/82657574/203461594-21454542-9881-4cf8-bc97-5ef7c13d8c9d.png)

> 视频的话可以基于OpenCV VideoCapture读视频的每一帧进行推理 感谢回复!可以实现直接对视频进行推理吗?如果需要修改您的代码来达到这个目的,我该在哪个文件里哪个部分进行修改呢?

> > > > > > 感谢回复!可以实现直接对视频进行推理吗?如果需要修改您的代码来达到这个目的,我该在哪个文件里哪个部分进行修改呢? > > 可以,通过OpenCV VideoCapture读每一帧得到cv::Mat,等效cv::imread读一张图像得到cv::Mat 请问是在 yolov4-tiny.cpp 的 main 函数里进行修改吗?具体修改位置是? [yolov4-tiny.cpp](https://github.com/tjuskyzhang/Scaled-YOLOv4-TensorRT/blob/master/yolov4-tiny-tensorrt/yolov4-tiny.cpp) 的 main 函数: ``` int main(int argc, char** argv) { cudaSetDevice(DEVICE); // create...