From 28952006b010146344319fd14f9e41b5ee5d828b Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 27 Jun 2021 04:46:03 +0300 Subject: [PATCH] Fixed cfg: yolov4-p5.cfg, yolov4-p6.cfg. Added new Weights-files, for: yolov4-csp, yolov4-p5, yolov4-p6, yolov4x-mish --- build/darknet/x64/cfg/yolov4-p5.cfg | 6 +++--- build/darknet/x64/cfg/yolov4-p6.cfg | 25 +++++++++++++++---------- build/darknet/x64/partial.cmd | 14 +++++++++++++- cfg/yolov4-p5.cfg | 6 +++--- cfg/yolov4-p6.cfg | 25 +++++++++++++++---------- 5 files changed, 49 insertions(+), 27 deletions(-) diff --git a/build/darknet/x64/cfg/yolov4-p5.cfg b/build/darknet/x64/cfg/yolov4-p5.cfg index 3a784817..14bce30e 100644 --- a/build/darknet/x64/cfg/yolov4-p5.cfg +++ b/build/darknet/x64/cfg/yolov4-p5.cfg @@ -1737,7 +1737,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -1782,7 +1782,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -1827,7 +1827,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 diff --git a/build/darknet/x64/cfg/yolov4-p6.cfg b/build/darknet/x64/cfg/yolov4-p6.cfg index 6e241e12..8defa150 100644 --- a/build/darknet/x64/cfg/yolov4-p6.cfg +++ b/build/darknet/x64/cfg/yolov4-p6.cfg @@ -2143,17 +2143,22 @@ mask = 0,1,2,3 anchors = 13,17, 31,25, 24,51, 61,45, 61,45, 48,102, 119,96, 97,189, 97,189, 217,184, 171,384, 324,451, 324,451, 545,357, 616,618, 1024,1024 classes=80 num=16 -jitter=.3 +jitter=.1 +scale_x_y = 2.0 +objectness_smooth=1 ignore_thresh = .7 truth_thresh = 1 -random=1 -scale_x_y = 1.05 -iou_thresh=0.213 -cls_normalizer=1.0 -iou_normalizer=0.07 +#random=1 +resize=1.5 +iou_thresh=0.2 +iou_normalizer=0.05 +cls_normalizer=0.5 +obj_normalizer=1.0 iou_loss=ciou -nms_kind=greedynms +nms_kind=diounms beta_nms=0.6 +new_coords=1 +max_delta=2 # YOLO-4 @@ -2193,7 +2198,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -2238,7 +2243,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -2283,7 +2288,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 diff --git a/build/darknet/x64/partial.cmd b/build/darknet/x64/partial.cmd index a9b06ca8..6080cf68 100644 --- a/build/darknet/x64/partial.cmd +++ b/build/darknet/x64/partial.cmd @@ -2,10 +2,22 @@ rem Download weights for - DenseNet201, ResNet50 and ResNet152 by this link: htt rem Download Yolo/Tiny-yolo: https://pjreddie.com/darknet/yolo/ rem Download Yolo9000: http://pjreddie.com/media/files/yolo9000.weights +darknet.exe partial cfg/yolov4-csp.cfg yolov4-csp.weights yolov4-csp.conv.142 142 + +darknet.exe partial cfg/yolov4x-mish.cfg yolov4x-mish.weights yolov4x-mish.conv.166 166 + + + + +rem darknet.exe partial cfg/yolov4-p5.cfg yolov4-p5.weights yolov4-p5.conv.232 232 + +rem darknet.exe partial cfg/yolov4-p6.cfg yolov4-p6.weights yolov4-p6.conv.289 289 + + rem darknet.exe partial cfg/tiny-yolo-voc.cfg tiny-yolo-voc.weights tiny-yolo-voc.conv.13 13 -darknet.exe partial cfg/yolov4-tiny.cfg yolov4-tiny.weights yolov4-tiny.conv.29 29 +rem darknet.exe partial cfg/yolov4-tiny.cfg yolov4-tiny.weights yolov4-tiny.conv.29 29 rem darknet.exe partial cfg/yolov4-sam-mish.cfg cfg/yolov4-sam-mish.weights cfg/yolov4-sam-mish.conv.137 137 diff --git a/cfg/yolov4-p5.cfg b/cfg/yolov4-p5.cfg index 3a784817..14bce30e 100644 --- a/cfg/yolov4-p5.cfg +++ b/cfg/yolov4-p5.cfg @@ -1737,7 +1737,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -1782,7 +1782,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -1827,7 +1827,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 diff --git a/cfg/yolov4-p6.cfg b/cfg/yolov4-p6.cfg index 6e241e12..8defa150 100644 --- a/cfg/yolov4-p6.cfg +++ b/cfg/yolov4-p6.cfg @@ -2143,17 +2143,22 @@ mask = 0,1,2,3 anchors = 13,17, 31,25, 24,51, 61,45, 61,45, 48,102, 119,96, 97,189, 97,189, 217,184, 171,384, 324,451, 324,451, 545,357, 616,618, 1024,1024 classes=80 num=16 -jitter=.3 +jitter=.1 +scale_x_y = 2.0 +objectness_smooth=1 ignore_thresh = .7 truth_thresh = 1 -random=1 -scale_x_y = 1.05 -iou_thresh=0.213 -cls_normalizer=1.0 -iou_normalizer=0.07 +#random=1 +resize=1.5 +iou_thresh=0.2 +iou_normalizer=0.05 +cls_normalizer=0.5 +obj_normalizer=1.0 iou_loss=ciou -nms_kind=greedynms +nms_kind=diounms beta_nms=0.6 +new_coords=1 +max_delta=2 # YOLO-4 @@ -2193,7 +2198,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -2238,7 +2243,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6 @@ -2283,7 +2288,7 @@ resize=1.5 iou_thresh=0.2 iou_normalizer=0.05 cls_normalizer=0.5 -obj_normalizer=0.4 +obj_normalizer=1.0 iou_loss=ciou nms_kind=diounms beta_nms=0.6