Y-Mona
Y-Mona
After the test,I got the correct tracking result!I only need to use yolov3.cfg to train the weight of yolo.convert .pt to .weight, then replace the file in detector and modify...
> 麻烦问一下您的YOLO v3权重是自己修改后又训练的么?我想用pth文件进行检测,您可以给出一些建议么? 你换一个模型,用yolov3.cfg 生成的权重转成.pt就行了
> > > 麻烦问一下您的YOLO v3权重是自己修改后又训练的么?我想用pth文件进行检测,您可以给出一些建议么? > > > > > > 你换一个模型,用yolov3.cfg > > 生成的权重转成.pt就行了 > > 那大概步骤是不是这样 > 1.用自己的pytorch版本的yolov3训练,然后得到yolov3.pt文件; > 2.利用自己训练的cfg文件进行转化,得到yolov3.weights文件; > 3.替换deepsort中所有用到检测权重的地方,例如yolov3.yaml和deepsort.yaml文件; > 4.替换检测模型为自己训练时的检测模型,进行跟踪。 > 请您指导一下,上述可能有不对的地方,我做了前三项工作,第四项正在做,烦请您看到回复一下,谢谢您。 还需要根据你的网络配置更改跟踪文件中的mask,以确定跟踪目标类型。 检测部分中的cfg也要改成你检测模型使用的那个,应该还有names文件之类的。就是目标检测自定义目标修改的文件
ok,I seek out the problem,the VeRi datasets assigned different cars in the training and test folder.for example, the car in train can be 1,3,5...but which in test may be 2,4,6...however,we...
you need know how to use python and the meaning of the name of the picture . set another folder named val. when you traverse the training folder , you...
your structure should be like this : train ——0001 ——0002 vall ——0001 ——0002
我英语水平也挺有限的,哪里不理想了,是我开头那个问题吗?你要把那个train.py的test改成val
在data下面新建一个val,里面的结构和train一样,也就是每个车分几个去val。注意这里要用move,不能复制,training 和val数据集的数据不能重合。train.py里面test改成val。后面看下这篇博客吧[https://blog.csdn.net/weixin_40194996/article/details/104779138](url)
他做法是对的,就是没说清楚。VeRi给的test是用来测试的,DeepSORT原本使用的数据集处理完之后的test其实就是val,所以这个项目的train.py用的test,命名方式不一样。所以你验证集就自己从train划出去,只是需要百度一下python如何移动文件和创建文件夹
你看下这个项目作者的数据,最后val的Loss也要降低到和train差不多