adrianosantospb / yolov5_ultralytics_to_darnet_format

13 stars 4 forks source link

太感谢你了,想在opencv中使用YOLO剪切图片 #2

Open clawCa opened 2 years ago

clawCa commented 2 years ago

想使用YOLO识别物体图片然后用opencv裁剪出来,但是发现找到的代码都是使用的yolov3,yolov4的weight和cfg,与YOLOv5的pt的文件格式不一样,才学习yolo不知道如何获取weight和cfg文件,十分感谢你帮助小白!!最后希望你能解答一下为什么一个是pt一个是weight,其中有什么区别

adrianosantospb commented 2 years ago

Thank you for your feedback and I'm glad to help you. The difference between both is only the file formats. The *.pt is the Pytorch format and the .weights is the Darknet format, just that.