Skip to content

Commit 7189aa0

Browse files
committed
Merge pull request #1026 from mshabunin:fix-yolov4-tiny-hash
2 parents d498110 + 090721c commit 7189aa0

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

testdata/dnn/download_models.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -899,14 +899,14 @@ def get_confirm_token(response): # in case of large files
899899
filename='efficientdet-d0.pb'),
900900
Model(
901901
name='YOLOv4', # https://github.com/opencv/opencv/issues/17148
902-
downloader=GDrive('1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT'),
902+
url="https://github.com/AlexeyAB/darknet/releases/download/yolov4/yolov4.weights",
903903
sha='0143deb6c46fcc7f74dd35bf3c14edc3784e99ee',
904904
filename='yolov4.weights'),
905905
Model(
906-
name='YOLOv4-tiny', # https://github.com/opencv/opencv/issues/17148
907-
url='https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.weights',
908-
sha='d110379b7b86899226b591ad4affc7115f707157',
909-
filename='yolov4-tiny.weights'),
906+
name='YOLOv4-tiny-2020-12', # https://github.com/opencv/opencv/issues/17148
907+
url='https://github.com/AlexeyAB/darknet/releases/download/yolov4/yolov4-tiny.weights',
908+
sha='451caaab22fb9831aa1a5ee9b5ba74a35ffa5dcb',
909+
filename='yolov4-tiny-2020-12.weights'),
910910
Model(
911911
name='YOLOv4x-mish', # https://github.com/opencv/opencv/issues/18975
912912
url='https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4x-mish.weights',

testdata/dnn/yolov4-tiny.cfg renamed to testdata/dnn/yolov4-tiny-2020-12.cfg

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@ hue=.1
1717

1818
learning_rate=0.00261
1919
burn_in=1000
20-
max_batches = 500200
20+
21+
max_batches = 2000200
2122
policy=steps
22-
steps=400000,450000
23+
steps=1600000,1800000
2324
scales=.1,.1
2425

26+
27+
#weights_reject_freq=1001
28+
#ema_alpha=0.9998
29+
#equidistant_point=1000
30+
#num_sigmas_reject_badlabels=3
31+
#badlabels_rejection_percentage=0.2
32+
33+
2534
[convolutional]
2635
batch_normalize=1
2736
filters=32
@@ -230,6 +239,8 @@ random=0
230239
resize=1.5
231240
nms_kind=greedynms
232241
beta_nms=0.6
242+
#new_coords=1
243+
#scale_x_y = 2.0
233244

234245
[route]
235246
layers = -4
@@ -279,3 +290,5 @@ random=0
279290
resize=1.5
280291
nms_kind=greedynms
281292
beta_nms=0.6
293+
#new_coords=1
294+
#scale_x_y = 2.0

testdata/dnn/yolov4-tiny.cfg.readme

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
[Origin](https://github.com/AlexeyAB/darknet/blob/3af6781de273fa01f4a535c8e40c5056e809e22f/cfg/yolov4-tiny.cfg)
2-
[License](https://github.com/AlexeyAB/darknet/blob/3af6781de273fa01f4a535c8e40c5056e809e22f/LICENSE)
1+
[Origin](https://github.com/AlexeyAB/darknet/blob/0faed3e60e52f742bbef43b83f6be51dd30f373e/cfg/yolov4-tiny.cfg)
2+
[License](https://github.com/AlexeyAB/darknet/blob/a298f94255a20a3198d80ea512755d9e5dddbf02/LICENSE)
3+
[Weights](https://github.com/AlexeyAB/darknet/releases/download/yolov4/yolov4-tiny.weights)

0 commit comments

Comments
 (0)