改进YOLOv5、YOLOv7系列:修改NMS为:DIoU-NMS,SIoU-NMS,EIoU-NMS,CIoU-NMS,GIoU-NMS
1.在general.py文件中加入NMS方法defNMS(boxes,scores,iou_thres,class_nms='CIoU'):#class_nms=class_nmsGIoU=CIoU=DIoU=EIoU=SIoU=Falseifclass_nms=='CIoU':CIoU=Trueelifclass_nms=='DIoU':DIoU=Trueelifclass_nms=='GIo