yunkai1841 commited on
Commit
5c35600
1 Parent(s): e0b9fee

replace submodule with lfs

Browse files
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
  darknetpath = os.path.join(os.path.dirname(__file__), "darknet")
8
  darknet_executable = os.path.join(darknetpath, "darknet")
9
 
10
- modelpath = os.path.join(os.path.dirname(__file__), "yolo-lightnet")
11
  models = {}
12
  modellist = []
13
 
 
7
  darknetpath = os.path.join(os.path.dirname(__file__), "darknet")
8
  darknet_executable = os.path.join(darknetpath, "darknet")
9
 
10
+ modelpath = os.path.join(os.path.dirname(__file__), "models")
11
  models = {}
12
  modellist = []
13
 
models/.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.weights filter=lfs diff=lfs merge=lfs -text
models/README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - darknet
5
+ - yolo
6
+ pipeline_tag: object-detection
7
+ ---
8
+ # yolo-lightnet
9
+
10
+ <!-- Provide a quick summary of what the model is/does. -->
11
+
12
+ This is an optimized YOLO model. It is optimized for running on NVDLA.
13
+
14
+ *NOTE: This is darknet format **NOT** Pytorch.*
15
+
16
+ ## Model Details
17
+
18
+ <!-- Provide a longer summary of what this model is. -->
19
+
20
+ File name is formatted like `lightnet-{name}-{resolution}.weights`.
21
+
22
+
23
+ ### driving
24
+
25
+ - target: car, bus, person, bike, truck, motor, train, rider, traffic_sign, traffic_light
26
+ - training data: BDD100K
27
+
28
+ ### face
29
+
30
+ - target: face
31
+ - train data: wider face
32
+
33
+ ### head_body
34
+
35
+ - target: head, body(include hidden area)
36
+ - train data: crowdhuman
37
+
38
+ ### head_body-visible
39
+
40
+ - target: head, body(only visible area)
41
+ - train data: crowdhuman
42
+ - cfg file and label names are same as `head body`
43
+
44
+ ## Uses
45
+
46
+ Running on:
47
+ https://github.com/daniel89710/lightNet-TRT
48
+ https://github.com/AlexeyAB/darknet
49
+
50
+
models/driving/bdd100k.data ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ classes = 10
2
+ train =
3
+ valid =
4
+ names = driving/bdd100k.names
5
+ backup =
models/driving/bdd100k.names ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ car
2
+ bus
3
+ person
4
+ bike
5
+ truck
6
+ motor
7
+ train
8
+ rider
9
+ traffic_sign
10
+ traffic_light
models/driving/lightnet-driving-1280x960.cfg ADDED
@@ -0,0 +1,915 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=256
3
+ subdivisions=64
4
+ width=1280
5
+ height=960
6
+ channels=3
7
+ momentum=0.9
8
+ decay=0.0005
9
+ angle=0
10
+ saturation = 1.5
11
+ exposure = 1.5
12
+ hue=.1
13
+
14
+ learning_rate=0.001
15
+ burn_in=500
16
+ max_batches = 10000
17
+ policy=steps
18
+
19
+ steps=500,2000,4000,8000
20
+ scales=.5,.5,.5,.5
21
+ gaussian_noise=1
22
+ flip=1
23
+
24
+ ##sparse=1 : 2:4 structured sparsity
25
+
26
+ [convolutional]
27
+ batch_normalize=1
28
+ filters=32
29
+ size=3
30
+ stride=2
31
+ pad=1
32
+ activation=relu
33
+
34
+ [convolutional]
35
+ #sparse=1
36
+ batch_normalize=1
37
+ filters=64
38
+ size=3
39
+ stride=2
40
+ pad=1
41
+ activation=relu
42
+
43
+ [convolutional]
44
+ #sparse=1
45
+ batch_normalize=1
46
+ filters=32
47
+ size=1
48
+ stride=1
49
+ pad=1
50
+ activation=relu
51
+
52
+ [route]
53
+ layers=-2
54
+
55
+ [convolutional]
56
+ #sparse=1
57
+ batch_normalize=1
58
+ filters=32
59
+ size=1
60
+ stride=1
61
+ pad=1
62
+ activation=relu
63
+
64
+ [convolutional]
65
+ #sparse=1
66
+ batch_normalize=1
67
+ filters=32
68
+ size=3
69
+ stride=1
70
+ pad=1
71
+ activation=relu
72
+
73
+ [convolutional]
74
+ #sparse=1
75
+ batch_normalize=1
76
+ filters=32
77
+ size=3
78
+ stride=1
79
+ pad=1
80
+ activation=relu
81
+
82
+ [convolutional]
83
+ #sparse=1
84
+ batch_normalize=1
85
+ filters=32
86
+ size=3
87
+ stride=1
88
+ pad=1
89
+ activation=relu
90
+
91
+ [convolutional]
92
+ #sparse=1
93
+ batch_normalize=1
94
+ filters=32
95
+ size=3
96
+ stride=1
97
+ pad=1
98
+ activation=relu
99
+
100
+ [route]
101
+ layers = -1,-3,-5,-7
102
+
103
+ [convolutional]
104
+ #sparse=1
105
+ batch_normalize=1
106
+ filters=64
107
+ size=1
108
+ stride=1
109
+ pad=1
110
+ activation=relu
111
+
112
+ [convolutional]
113
+ #sparse=1
114
+ batch_normalize=1
115
+ filters=64
116
+ size=3
117
+ stride=2
118
+ pad=1
119
+ activation=relu
120
+
121
+
122
+ [convolutional]
123
+ #sparse=1
124
+ batch_normalize=1
125
+ filters=64
126
+ size=1
127
+ stride=1
128
+ pad=1
129
+ activation=relu
130
+
131
+ [route]
132
+ layers=-2
133
+
134
+ [convolutional]
135
+ #sparse=1
136
+ batch_normalize=1
137
+ filters=64
138
+ size=1
139
+ stride=1
140
+ pad=1
141
+ activation=relu
142
+
143
+ [convolutional]
144
+ #sparse=1
145
+ batch_normalize=1
146
+ filters=64
147
+ size=3
148
+ stride=1
149
+ pad=1
150
+ activation=relu
151
+
152
+ [convolutional]
153
+ #sparse=1
154
+ batch_normalize=1
155
+ filters=64
156
+ size=3
157
+ stride=1
158
+ pad=1
159
+ activation=relu
160
+
161
+ [convolutional]
162
+ #sparse=1
163
+ batch_normalize=1
164
+ filters=64
165
+ size=3
166
+ stride=1
167
+ pad=1
168
+ activation=relu
169
+
170
+ [convolutional]
171
+ #sparse=1
172
+ batch_normalize=1
173
+ filters=64
174
+ size=3
175
+ stride=1
176
+ pad=1
177
+ activation=relu
178
+
179
+ [route]
180
+ layers = -1,-3,-5,-7
181
+
182
+ [convolutional]
183
+ #sparse=1
184
+ batch_normalize=1
185
+ filters=128
186
+ size=1
187
+ stride=1
188
+ pad=1
189
+ activation=relu
190
+
191
+ [convolutional]
192
+ #sparse=1
193
+ batch_normalize=1
194
+ filters=128
195
+ size=3
196
+ stride=2
197
+ pad=1
198
+ activation=relu
199
+
200
+ [convolutional]
201
+ #sparse=1
202
+ batch_normalize=1
203
+ filters=128
204
+ size=1
205
+ stride=1
206
+ pad=1
207
+ activation=relu
208
+
209
+ [route]
210
+ layers=-2
211
+
212
+ [convolutional]
213
+ #sparse=1
214
+ batch_normalize=1
215
+ filters=128
216
+ size=1
217
+ stride=1
218
+ pad=1
219
+ activation=relu
220
+
221
+ [convolutional]
222
+ #sparse=1
223
+ batch_normalize=1
224
+ filters=128
225
+ size=3
226
+ stride=1
227
+ pad=1
228
+ activation=relu
229
+
230
+ [convolutional]
231
+ #sparse=1
232
+ batch_normalize=1
233
+ filters=128
234
+ size=3
235
+ stride=1
236
+ pad=1
237
+ activation=relu
238
+
239
+ [convolutional]
240
+ #sparse=1
241
+ batch_normalize=1
242
+ filters=128
243
+ size=3
244
+ stride=1
245
+ pad=1
246
+ activation=relu
247
+
248
+ [convolutional]
249
+ #sparse=1
250
+ batch_normalize=1
251
+ filters=128
252
+ size=3
253
+ stride=1
254
+ pad=1
255
+ activation=relu
256
+
257
+ [route]
258
+ layers = -1,-3,-5,-7
259
+
260
+ [convolutional]
261
+ #sparse=1
262
+ batch_normalize=1
263
+ filters=256
264
+ size=1
265
+ stride=1
266
+ pad=1
267
+ activation=relu
268
+
269
+ [convolutional]
270
+ #sparse=1
271
+ batch_normalize=1
272
+ filters=256
273
+ size=3
274
+ stride=2
275
+ pad=1
276
+ activation=relu
277
+
278
+ [convolutional]
279
+ #sparse=1
280
+ batch_normalize=1
281
+ filters=256
282
+ size=1
283
+ stride=1
284
+ pad=1
285
+ activation=relu
286
+
287
+ [route]
288
+ layers=-2
289
+
290
+ [convolutional]
291
+ #sparse=1
292
+ batch_normalize=1
293
+ filters=256
294
+ size=1
295
+ stride=1
296
+ pad=1
297
+ activation=relu
298
+
299
+ [convolutional]
300
+ #sparse=1
301
+ batch_normalize=1
302
+ filters=256
303
+ size=3
304
+ stride=1
305
+ pad=1
306
+ activation=relu
307
+
308
+ [convolutional]
309
+ #sparse=1
310
+ batch_normalize=1
311
+ filters=256
312
+ size=3
313
+ stride=1
314
+ pad=1
315
+ activation=relu
316
+
317
+ [convolutional]
318
+ #sparse=1
319
+ batch_normalize=1
320
+ filters=256
321
+ size=3
322
+ stride=1
323
+ pad=1
324
+ activation=relu
325
+
326
+ [convolutional]
327
+ #sparse=1
328
+ batch_normalize=1
329
+ filters=256
330
+ size=3
331
+ stride=1
332
+ pad=1
333
+ activation=relu
334
+
335
+ [route]
336
+ layers = -1,-3,-5,-7
337
+
338
+ [convolutional]
339
+ #sparse=1
340
+ batch_normalize=1
341
+ filters=512
342
+ size=1
343
+ stride=1
344
+ pad=1
345
+ activation=relu
346
+
347
+
348
+ ##################################
349
+
350
+ ### ASPPCSP ###
351
+ [convolutional]
352
+ #sparse=1
353
+ batch_normalize=1
354
+ filters=256
355
+ size=1
356
+ stride=1
357
+ pad=1
358
+ activation=relu
359
+
360
+ [route]
361
+ layers = -2
362
+
363
+ [convolutional]
364
+ #sparse=1
365
+ batch_normalize=1
366
+ filters=256
367
+ size=1
368
+ stride=1
369
+ pad=1
370
+ activation=relu
371
+
372
+ ### ASPP ###
373
+ [convolutional]
374
+ #sparse=1
375
+ batch_normalize=1
376
+ filters=256
377
+ size=1
378
+ stride=1
379
+ pad=1
380
+ dilation=1
381
+ activation=relu
382
+
383
+ [route]
384
+ layers=-2
385
+
386
+ [convolutional]
387
+ #sparse=1
388
+ batch_normalize=1
389
+ filters=256
390
+ size=1
391
+ stride=1
392
+ pad=1
393
+ dilation=3
394
+ activation=relu
395
+
396
+ [route]
397
+ layers=-4
398
+
399
+ [convolutional]
400
+ #sparse=1
401
+ batch_normalize=1
402
+ filters=256
403
+ size=1
404
+ stride=1
405
+ pad=1
406
+ dilation=5
407
+ activation=relu
408
+
409
+ [route]
410
+ layers=-1,-3,-5,-6
411
+ ### End ASPP ###
412
+
413
+ [convolutional]
414
+ #sparse=1
415
+ batch_normalize=1
416
+ filters=256
417
+ size=1
418
+ stride=1
419
+ pad=1
420
+ activation=relu
421
+
422
+ [route]
423
+ layers = -10,-1
424
+
425
+ # 44
426
+ [convolutional]
427
+ #sparse=1
428
+ batch_normalize=1
429
+ filters=256
430
+ size=1
431
+ stride=1
432
+ pad=1
433
+ activation=relu
434
+ ### End ASPPCSP ###
435
+
436
+ [convolutional]
437
+ #sparse=1
438
+ batch_normalize=1
439
+ filters=128
440
+ size=1
441
+ stride=1
442
+ pad=1
443
+ activation=relu
444
+
445
+ [upsample]
446
+ stride=2
447
+
448
+ [route]
449
+ layers = 30
450
+
451
+ [convolutional]
452
+ #sparse=1
453
+ batch_normalize=1
454
+ filters=128
455
+ size=1
456
+ stride=1
457
+ pad=1
458
+ activation=relu
459
+
460
+ [route]
461
+ layers = -1,-3
462
+
463
+ [convolutional]
464
+ #sparse=1
465
+ batch_normalize=1
466
+ filters=64
467
+ size=1
468
+ stride=1
469
+ pad=1
470
+ activation=relu
471
+
472
+ [route]
473
+ layers=-2
474
+
475
+ [convolutional]
476
+ #sparse=1
477
+ batch_normalize=1
478
+ filters=64
479
+ size=1
480
+ stride=1
481
+ pad=1
482
+ activation=relu
483
+
484
+ [convolutional]
485
+ #sparse=1
486
+ batch_normalize=1
487
+ filters=64
488
+ size=3
489
+ stride=1
490
+ pad=1
491
+ activation=relu
492
+
493
+ [convolutional]
494
+ #sparse=1
495
+ batch_normalize=1
496
+ filters=64
497
+ size=3
498
+ stride=1
499
+ pad=1
500
+ activation=relu
501
+
502
+ [convolutional]
503
+ #sparse=1
504
+ batch_normalize=1
505
+ filters=64
506
+ size=3
507
+ stride=1
508
+ pad=1
509
+ activation=relu
510
+
511
+ [convolutional]
512
+ #sparse=1
513
+ batch_normalize=1
514
+ filters=64
515
+ size=3
516
+ stride=1
517
+ pad=1
518
+ activation=relu
519
+
520
+ [route]
521
+ layers = -1,-3,-5,-7
522
+
523
+
524
+ # 56
525
+ [convolutional]
526
+ #sparse=1
527
+ batch_normalize=1
528
+ filters=128
529
+ size=1
530
+ stride=1
531
+ pad=1
532
+ activation=relu
533
+
534
+ [convolutional]
535
+ #sparse=1
536
+ batch_normalize=1
537
+ filters=64
538
+ size=1
539
+ stride=1
540
+ pad=1
541
+ activation=relu
542
+
543
+ [upsample]
544
+ stride=2
545
+
546
+ [route]
547
+ layers = 20
548
+
549
+ [convolutional]
550
+ #sparse=1
551
+ batch_normalize=1
552
+ filters=64
553
+ size=1
554
+ stride=1
555
+ pad=1
556
+ activation=relu
557
+
558
+ [route]
559
+ layers = -1,-3
560
+
561
+ [convolutional]
562
+ #sparse=1
563
+ batch_normalize=1
564
+ filters=32
565
+ size=1
566
+ stride=1
567
+ pad=1
568
+ activation=relu
569
+
570
+ [route]
571
+ layers=-2
572
+
573
+ [convolutional]
574
+ #sparse=1
575
+ batch_normalize=1
576
+ filters=32
577
+ size=1
578
+ stride=1
579
+ pad=1
580
+ activation=relu
581
+
582
+ [convolutional]
583
+ #sparse=1
584
+ batch_normalize=1
585
+ filters=32
586
+ size=3
587
+ stride=1
588
+ pad=1
589
+ activation=relu
590
+
591
+ [convolutional]
592
+ #sparse=1
593
+ batch_normalize=1
594
+ filters=32
595
+ size=3
596
+ stride=1
597
+ pad=1
598
+ activation=relu
599
+
600
+ [convolutional]
601
+ #sparse=1
602
+ batch_normalize=1
603
+ filters=32
604
+ size=3
605
+ stride=1
606
+ pad=1
607
+ activation=relu
608
+
609
+ [convolutional]
610
+ #sparse=1
611
+ batch_normalize=1
612
+ filters=32
613
+ size=3
614
+ stride=1
615
+ pad=1
616
+ activation=relu
617
+
618
+ [route]
619
+ layers = -1,-3,-5,-7
620
+
621
+ [convolutional]
622
+ #sparse=1
623
+ batch_normalize=1
624
+ filters=64
625
+ size=1
626
+ stride=1
627
+ pad=1
628
+ activation=relu
629
+
630
+
631
+ [convolutional]
632
+ #sparse=1
633
+ batch_normalize=1
634
+ size=3
635
+ stride=2
636
+ pad=1
637
+ filters=128
638
+ activation=relu
639
+
640
+ [route]
641
+ layers = -1,67
642
+
643
+ [convolutional]
644
+ #sparse=1
645
+ batch_normalize=1
646
+ filters=64
647
+ size=1
648
+ stride=1
649
+ pad=1
650
+ activation=relu
651
+
652
+ [route]
653
+ layers=-2
654
+
655
+ [convolutional]
656
+ #sparse=1
657
+ batch_normalize=1
658
+ filters=64
659
+ size=1
660
+ stride=1
661
+ pad=1
662
+ activation=relu
663
+
664
+ [convolutional]
665
+ #sparse=1
666
+ batch_normalize=1
667
+ filters=64
668
+ size=3
669
+ stride=1
670
+ pad=1
671
+ activation=relu
672
+
673
+ [convolutional]
674
+ #sparse=1
675
+ batch_normalize=1
676
+ filters=64
677
+ size=3
678
+ stride=1
679
+ pad=1
680
+ activation=relu
681
+
682
+ [convolutional]
683
+ #sparse=1
684
+ batch_normalize=1
685
+ filters=64
686
+ size=3
687
+ stride=1
688
+ pad=1
689
+ activation=relu
690
+
691
+ [convolutional]
692
+ #sparse=1
693
+ batch_normalize=1
694
+ filters=64
695
+ size=3
696
+ stride=1
697
+ pad=1
698
+ activation=relu
699
+
700
+ [route]
701
+ layers = -1,-3,-5,-7
702
+
703
+ [convolutional]
704
+ #sparse=1
705
+ batch_normalize=1
706
+ filters=128
707
+ size=1
708
+ stride=1
709
+ pad=1
710
+ activation=relu
711
+
712
+ [convolutional]
713
+ #sparse=1
714
+ batch_normalize=1
715
+ size=3
716
+ stride=2
717
+ pad=1
718
+ filters=256
719
+ activation=relu
720
+
721
+ [route]
722
+ layers = -1,53
723
+
724
+ [convolutional]
725
+ #sparse=1
726
+ batch_normalize=1
727
+ filters=128
728
+ size=1
729
+ stride=1
730
+ pad=1
731
+ activation=relu
732
+
733
+ [route]
734
+ layers=-2
735
+
736
+ [convolutional]
737
+ #sparse=1
738
+ batch_normalize=1
739
+ filters=128
740
+ size=1
741
+ stride=1
742
+ pad=1
743
+ activation=relu
744
+
745
+ [convolutional]
746
+ #sparse=1
747
+ batch_normalize=1
748
+ filters=128
749
+ size=3
750
+ stride=1
751
+ pad=1
752
+ activation=relu
753
+
754
+ [convolutional]
755
+ #sparse=1
756
+ batch_normalize=1
757
+ filters=128
758
+ size=3
759
+ stride=1
760
+ pad=1
761
+ activation=relu
762
+
763
+ [convolutional]
764
+ #sparse=1
765
+ batch_normalize=1
766
+ filters=128
767
+ size=3
768
+ stride=1
769
+ pad=1
770
+ activation=relu
771
+
772
+ [convolutional]
773
+ #sparse=1
774
+ batch_normalize=1
775
+ filters=128
776
+ size=3
777
+ stride=1
778
+ pad=1
779
+ activation=relu
780
+
781
+ [route]
782
+ layers = -1,-3,-5,-7
783
+
784
+ [convolutional]
785
+ #sparse=1
786
+ batch_normalize=1
787
+ filters=256
788
+ size=1
789
+ stride=1
790
+ pad=1
791
+ activation=relu
792
+
793
+ #############################
794
+
795
+ # ============ End of Neck ============ #
796
+
797
+ # ============ Head ============ #
798
+
799
+
800
+ # P3
801
+ [route]
802
+ layers = 80
803
+
804
+ [convolutional]
805
+ #sparse=1
806
+ batch_normalize=1
807
+ size=3
808
+ stride=1
809
+ pad=1
810
+ filters=128
811
+ activation=relu
812
+
813
+ [convolutional]
814
+ ##sparse=1
815
+ size=1
816
+ stride=1
817
+ pad=1
818
+ filters=45
819
+ #activation=linear
820
+ activation=logistic
821
+
822
+ [yolo]
823
+ mask = 0,1,2
824
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
825
+ classes=10
826
+ num=9
827
+ jitter=.3
828
+ scale_x_y = 2.0
829
+ ignore_thresh = .5
830
+ truth_thresh = 1
831
+ #random=1
832
+ resize=1.5
833
+ new_coords=1
834
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
835
+ cls_normalizer=0.25
836
+ iou_normalizer=0.05
837
+ iou_loss=ciou
838
+
839
+ # P4
840
+ [route]
841
+ layers = 91
842
+
843
+ [convolutional]
844
+ #sparse=1
845
+ batch_normalize=1
846
+ size=3
847
+ stride=1
848
+ pad=1
849
+ filters=256
850
+ activation=relu
851
+
852
+ [convolutional]
853
+ ##sparse=1
854
+ size=1
855
+ stride=1
856
+ pad=1
857
+ filters=45
858
+ #activation=linear
859
+ activation=logistic
860
+
861
+ [yolo]
862
+ mask = 3,4,5
863
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
864
+ classes=10
865
+ num=9
866
+ jitter=.3
867
+ scale_x_y = 2.0
868
+ ignore_thresh = .5
869
+ truth_thresh = 1
870
+ resize=1.5
871
+ new_coords=1
872
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
873
+ cls_normalizer=0.25
874
+ iou_normalizer=0.05
875
+ iou_loss=ciou
876
+
877
+
878
+ # P5
879
+ [route]
880
+ layers = 102
881
+
882
+ [convolutional]
883
+ #sparse=1
884
+ batch_normalize=1
885
+ size=3
886
+ stride=1
887
+ pad=1
888
+ filters=512
889
+ activation=relu
890
+
891
+ [convolutional]
892
+ ##sparse=1
893
+ size=1
894
+ stride=1
895
+ pad=1
896
+ filters=45
897
+ #activation=linear
898
+ activation=logistic
899
+
900
+ [yolo]
901
+ mask = 6,7,8
902
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
903
+ classes=10
904
+ num=9
905
+ jitter=.3
906
+ scale_x_y = 2.0
907
+ ignore_thresh = .5
908
+ truth_thresh = 1
909
+ resize=1.5
910
+ new_coords=1
911
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
912
+ cls_normalizer=0.25
913
+ iou_normalizer=0.05
914
+ iou_loss=ciou
915
+
models/driving/lightnet-driving-1280x960.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2486b1277b16bbd6f210abab224ccc3de133b4da2385f6bace0d0c851f4b44a3
3
+ size 36085680
models/driving/lightnet-driving-640x640.cfg ADDED
@@ -0,0 +1,917 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=8
3
+ # subdivisions=1
4
+ # width=1280
5
+ # height=960
6
+ width = 640
7
+ height = 640
8
+ channels=3
9
+ momentum=0.9
10
+ decay=0.0005
11
+ angle=0
12
+ saturation = 1.5
13
+ exposure = 1.5
14
+ hue=.1
15
+
16
+ learning_rate=0.001
17
+ burn_in=500
18
+ max_batches = 2625000
19
+ policy=steps
20
+
21
+ steps=437500, 875000, 1312500, 1750000
22
+ scales=.5,.5,.5,.5
23
+ gaussian_noise=1
24
+ flip=1
25
+
26
+ ##sparse=1 : 2:4 structured sparsity
27
+
28
+ [convolutional]
29
+ batch_normalize=1
30
+ filters=32
31
+ size=3
32
+ stride=2
33
+ pad=1
34
+ activation=relu
35
+
36
+ [convolutional]
37
+ #sparse=1
38
+ batch_normalize=1
39
+ filters=64
40
+ size=3
41
+ stride=2
42
+ pad=1
43
+ activation=relu
44
+
45
+ [convolutional]
46
+ #sparse=1
47
+ batch_normalize=1
48
+ filters=32
49
+ size=1
50
+ stride=1
51
+ pad=1
52
+ activation=relu
53
+
54
+ [route]
55
+ layers=-2
56
+
57
+ [convolutional]
58
+ #sparse=1
59
+ batch_normalize=1
60
+ filters=32
61
+ size=1
62
+ stride=1
63
+ pad=1
64
+ activation=relu
65
+
66
+ [convolutional]
67
+ #sparse=1
68
+ batch_normalize=1
69
+ filters=32
70
+ size=3
71
+ stride=1
72
+ pad=1
73
+ activation=relu
74
+
75
+ [convolutional]
76
+ #sparse=1
77
+ batch_normalize=1
78
+ filters=32
79
+ size=3
80
+ stride=1
81
+ pad=1
82
+ activation=relu
83
+
84
+ [convolutional]
85
+ #sparse=1
86
+ batch_normalize=1
87
+ filters=32
88
+ size=3
89
+ stride=1
90
+ pad=1
91
+ activation=relu
92
+
93
+ [convolutional]
94
+ #sparse=1
95
+ batch_normalize=1
96
+ filters=32
97
+ size=3
98
+ stride=1
99
+ pad=1
100
+ activation=relu
101
+
102
+ [route]
103
+ layers = -1,-3,-5,-7
104
+
105
+ [convolutional]
106
+ #sparse=1
107
+ batch_normalize=1
108
+ filters=64
109
+ size=1
110
+ stride=1
111
+ pad=1
112
+ activation=relu
113
+
114
+ [convolutional]
115
+ #sparse=1
116
+ batch_normalize=1
117
+ filters=64
118
+ size=3
119
+ stride=2
120
+ pad=1
121
+ activation=relu
122
+
123
+
124
+ [convolutional]
125
+ #sparse=1
126
+ batch_normalize=1
127
+ filters=64
128
+ size=1
129
+ stride=1
130
+ pad=1
131
+ activation=relu
132
+
133
+ [route]
134
+ layers=-2
135
+
136
+ [convolutional]
137
+ #sparse=1
138
+ batch_normalize=1
139
+ filters=64
140
+ size=1
141
+ stride=1
142
+ pad=1
143
+ activation=relu
144
+
145
+ [convolutional]
146
+ #sparse=1
147
+ batch_normalize=1
148
+ filters=64
149
+ size=3
150
+ stride=1
151
+ pad=1
152
+ activation=relu
153
+
154
+ [convolutional]
155
+ #sparse=1
156
+ batch_normalize=1
157
+ filters=64
158
+ size=3
159
+ stride=1
160
+ pad=1
161
+ activation=relu
162
+
163
+ [convolutional]
164
+ #sparse=1
165
+ batch_normalize=1
166
+ filters=64
167
+ size=3
168
+ stride=1
169
+ pad=1
170
+ activation=relu
171
+
172
+ [convolutional]
173
+ #sparse=1
174
+ batch_normalize=1
175
+ filters=64
176
+ size=3
177
+ stride=1
178
+ pad=1
179
+ activation=relu
180
+
181
+ [route]
182
+ layers = -1,-3,-5,-7
183
+
184
+ [convolutional]
185
+ #sparse=1
186
+ batch_normalize=1
187
+ filters=128
188
+ size=1
189
+ stride=1
190
+ pad=1
191
+ activation=relu
192
+
193
+ [convolutional]
194
+ #sparse=1
195
+ batch_normalize=1
196
+ filters=128
197
+ size=3
198
+ stride=2
199
+ pad=1
200
+ activation=relu
201
+
202
+ [convolutional]
203
+ #sparse=1
204
+ batch_normalize=1
205
+ filters=128
206
+ size=1
207
+ stride=1
208
+ pad=1
209
+ activation=relu
210
+
211
+ [route]
212
+ layers=-2
213
+
214
+ [convolutional]
215
+ #sparse=1
216
+ batch_normalize=1
217
+ filters=128
218
+ size=1
219
+ stride=1
220
+ pad=1
221
+ activation=relu
222
+
223
+ [convolutional]
224
+ #sparse=1
225
+ batch_normalize=1
226
+ filters=128
227
+ size=3
228
+ stride=1
229
+ pad=1
230
+ activation=relu
231
+
232
+ [convolutional]
233
+ #sparse=1
234
+ batch_normalize=1
235
+ filters=128
236
+ size=3
237
+ stride=1
238
+ pad=1
239
+ activation=relu
240
+
241
+ [convolutional]
242
+ #sparse=1
243
+ batch_normalize=1
244
+ filters=128
245
+ size=3
246
+ stride=1
247
+ pad=1
248
+ activation=relu
249
+
250
+ [convolutional]
251
+ #sparse=1
252
+ batch_normalize=1
253
+ filters=128
254
+ size=3
255
+ stride=1
256
+ pad=1
257
+ activation=relu
258
+
259
+ [route]
260
+ layers = -1,-3,-5,-7
261
+
262
+ [convolutional]
263
+ #sparse=1
264
+ batch_normalize=1
265
+ filters=256
266
+ size=1
267
+ stride=1
268
+ pad=1
269
+ activation=relu
270
+
271
+ [convolutional]
272
+ #sparse=1
273
+ batch_normalize=1
274
+ filters=256
275
+ size=3
276
+ stride=2
277
+ pad=1
278
+ activation=relu
279
+
280
+ [convolutional]
281
+ #sparse=1
282
+ batch_normalize=1
283
+ filters=256
284
+ size=1
285
+ stride=1
286
+ pad=1
287
+ activation=relu
288
+
289
+ [route]
290
+ layers=-2
291
+
292
+ [convolutional]
293
+ #sparse=1
294
+ batch_normalize=1
295
+ filters=256
296
+ size=1
297
+ stride=1
298
+ pad=1
299
+ activation=relu
300
+
301
+ [convolutional]
302
+ #sparse=1
303
+ batch_normalize=1
304
+ filters=256
305
+ size=3
306
+ stride=1
307
+ pad=1
308
+ activation=relu
309
+
310
+ [convolutional]
311
+ #sparse=1
312
+ batch_normalize=1
313
+ filters=256
314
+ size=3
315
+ stride=1
316
+ pad=1
317
+ activation=relu
318
+
319
+ [convolutional]
320
+ #sparse=1
321
+ batch_normalize=1
322
+ filters=256
323
+ size=3
324
+ stride=1
325
+ pad=1
326
+ activation=relu
327
+
328
+ [convolutional]
329
+ #sparse=1
330
+ batch_normalize=1
331
+ filters=256
332
+ size=3
333
+ stride=1
334
+ pad=1
335
+ activation=relu
336
+
337
+ [route]
338
+ layers = -1,-3,-5,-7
339
+
340
+ [convolutional]
341
+ #sparse=1
342
+ batch_normalize=1
343
+ filters=512
344
+ size=1
345
+ stride=1
346
+ pad=1
347
+ activation=relu
348
+
349
+
350
+ ##################################
351
+
352
+ ### ASPPCSP ###
353
+ [convolutional]
354
+ #sparse=1
355
+ batch_normalize=1
356
+ filters=256
357
+ size=1
358
+ stride=1
359
+ pad=1
360
+ activation=relu
361
+
362
+ [route]
363
+ layers = -2
364
+
365
+ [convolutional]
366
+ #sparse=1
367
+ batch_normalize=1
368
+ filters=256
369
+ size=1
370
+ stride=1
371
+ pad=1
372
+ activation=relu
373
+
374
+ ### ASPP ###
375
+ [convolutional]
376
+ #sparse=1
377
+ batch_normalize=1
378
+ filters=256
379
+ size=1
380
+ stride=1
381
+ pad=1
382
+ dilation=1
383
+ activation=relu
384
+
385
+ [route]
386
+ layers=-2
387
+
388
+ [convolutional]
389
+ #sparse=1
390
+ batch_normalize=1
391
+ filters=256
392
+ size=1
393
+ stride=1
394
+ pad=1
395
+ dilation=3
396
+ activation=relu
397
+
398
+ [route]
399
+ layers=-4
400
+
401
+ [convolutional]
402
+ #sparse=1
403
+ batch_normalize=1
404
+ filters=256
405
+ size=1
406
+ stride=1
407
+ pad=1
408
+ dilation=5
409
+ activation=relu
410
+
411
+ [route]
412
+ layers=-1,-3,-5,-6
413
+ ### End ASPP ###
414
+
415
+ [convolutional]
416
+ #sparse=1
417
+ batch_normalize=1
418
+ filters=256
419
+ size=1
420
+ stride=1
421
+ pad=1
422
+ activation=relu
423
+
424
+ [route]
425
+ layers = -10,-1
426
+
427
+ # 44
428
+ [convolutional]
429
+ #sparse=1
430
+ batch_normalize=1
431
+ filters=256
432
+ size=1
433
+ stride=1
434
+ pad=1
435
+ activation=relu
436
+ ### End ASPPCSP ###
437
+
438
+ [convolutional]
439
+ #sparse=1
440
+ batch_normalize=1
441
+ filters=128
442
+ size=1
443
+ stride=1
444
+ pad=1
445
+ activation=relu
446
+
447
+ [upsample]
448
+ stride=2
449
+
450
+ [route]
451
+ layers = 30
452
+
453
+ [convolutional]
454
+ #sparse=1
455
+ batch_normalize=1
456
+ filters=128
457
+ size=1
458
+ stride=1
459
+ pad=1
460
+ activation=relu
461
+
462
+ [route]
463
+ layers = -1,-3
464
+
465
+ [convolutional]
466
+ #sparse=1
467
+ batch_normalize=1
468
+ filters=64
469
+ size=1
470
+ stride=1
471
+ pad=1
472
+ activation=relu
473
+
474
+ [route]
475
+ layers=-2
476
+
477
+ [convolutional]
478
+ #sparse=1
479
+ batch_normalize=1
480
+ filters=64
481
+ size=1
482
+ stride=1
483
+ pad=1
484
+ activation=relu
485
+
486
+ [convolutional]
487
+ #sparse=1
488
+ batch_normalize=1
489
+ filters=64
490
+ size=3
491
+ stride=1
492
+ pad=1
493
+ activation=relu
494
+
495
+ [convolutional]
496
+ #sparse=1
497
+ batch_normalize=1
498
+ filters=64
499
+ size=3
500
+ stride=1
501
+ pad=1
502
+ activation=relu
503
+
504
+ [convolutional]
505
+ #sparse=1
506
+ batch_normalize=1
507
+ filters=64
508
+ size=3
509
+ stride=1
510
+ pad=1
511
+ activation=relu
512
+
513
+ [convolutional]
514
+ #sparse=1
515
+ batch_normalize=1
516
+ filters=64
517
+ size=3
518
+ stride=1
519
+ pad=1
520
+ activation=relu
521
+
522
+ [route]
523
+ layers = -1,-3,-5,-7
524
+
525
+
526
+ # 56
527
+ [convolutional]
528
+ #sparse=1
529
+ batch_normalize=1
530
+ filters=128
531
+ size=1
532
+ stride=1
533
+ pad=1
534
+ activation=relu
535
+
536
+ [convolutional]
537
+ #sparse=1
538
+ batch_normalize=1
539
+ filters=64
540
+ size=1
541
+ stride=1
542
+ pad=1
543
+ activation=relu
544
+
545
+ [upsample]
546
+ stride=2
547
+
548
+ [route]
549
+ layers = 20
550
+
551
+ [convolutional]
552
+ #sparse=1
553
+ batch_normalize=1
554
+ filters=64
555
+ size=1
556
+ stride=1
557
+ pad=1
558
+ activation=relu
559
+
560
+ [route]
561
+ layers = -1,-3
562
+
563
+ [convolutional]
564
+ #sparse=1
565
+ batch_normalize=1
566
+ filters=32
567
+ size=1
568
+ stride=1
569
+ pad=1
570
+ activation=relu
571
+
572
+ [route]
573
+ layers=-2
574
+
575
+ [convolutional]
576
+ #sparse=1
577
+ batch_normalize=1
578
+ filters=32
579
+ size=1
580
+ stride=1
581
+ pad=1
582
+ activation=relu
583
+
584
+ [convolutional]
585
+ #sparse=1
586
+ batch_normalize=1
587
+ filters=32
588
+ size=3
589
+ stride=1
590
+ pad=1
591
+ activation=relu
592
+
593
+ [convolutional]
594
+ #sparse=1
595
+ batch_normalize=1
596
+ filters=32
597
+ size=3
598
+ stride=1
599
+ pad=1
600
+ activation=relu
601
+
602
+ [convolutional]
603
+ #sparse=1
604
+ batch_normalize=1
605
+ filters=32
606
+ size=3
607
+ stride=1
608
+ pad=1
609
+ activation=relu
610
+
611
+ [convolutional]
612
+ #sparse=1
613
+ batch_normalize=1
614
+ filters=32
615
+ size=3
616
+ stride=1
617
+ pad=1
618
+ activation=relu
619
+
620
+ [route]
621
+ layers = -1,-3,-5,-7
622
+
623
+ [convolutional]
624
+ #sparse=1
625
+ batch_normalize=1
626
+ filters=64
627
+ size=1
628
+ stride=1
629
+ pad=1
630
+ activation=relu
631
+
632
+
633
+ [convolutional]
634
+ #sparse=1
635
+ batch_normalize=1
636
+ size=3
637
+ stride=2
638
+ pad=1
639
+ filters=128
640
+ activation=relu
641
+
642
+ [route]
643
+ layers = -1,67
644
+
645
+ [convolutional]
646
+ #sparse=1
647
+ batch_normalize=1
648
+ filters=64
649
+ size=1
650
+ stride=1
651
+ pad=1
652
+ activation=relu
653
+
654
+ [route]
655
+ layers=-2
656
+
657
+ [convolutional]
658
+ #sparse=1
659
+ batch_normalize=1
660
+ filters=64
661
+ size=1
662
+ stride=1
663
+ pad=1
664
+ activation=relu
665
+
666
+ [convolutional]
667
+ #sparse=1
668
+ batch_normalize=1
669
+ filters=64
670
+ size=3
671
+ stride=1
672
+ pad=1
673
+ activation=relu
674
+
675
+ [convolutional]
676
+ #sparse=1
677
+ batch_normalize=1
678
+ filters=64
679
+ size=3
680
+ stride=1
681
+ pad=1
682
+ activation=relu
683
+
684
+ [convolutional]
685
+ #sparse=1
686
+ batch_normalize=1
687
+ filters=64
688
+ size=3
689
+ stride=1
690
+ pad=1
691
+ activation=relu
692
+
693
+ [convolutional]
694
+ #sparse=1
695
+ batch_normalize=1
696
+ filters=64
697
+ size=3
698
+ stride=1
699
+ pad=1
700
+ activation=relu
701
+
702
+ [route]
703
+ layers = -1,-3,-5,-7
704
+
705
+ [convolutional]
706
+ #sparse=1
707
+ batch_normalize=1
708
+ filters=128
709
+ size=1
710
+ stride=1
711
+ pad=1
712
+ activation=relu
713
+
714
+ [convolutional]
715
+ #sparse=1
716
+ batch_normalize=1
717
+ size=3
718
+ stride=2
719
+ pad=1
720
+ filters=256
721
+ activation=relu
722
+
723
+ [route]
724
+ layers = -1,53
725
+
726
+ [convolutional]
727
+ #sparse=1
728
+ batch_normalize=1
729
+ filters=128
730
+ size=1
731
+ stride=1
732
+ pad=1
733
+ activation=relu
734
+
735
+ [route]
736
+ layers=-2
737
+
738
+ [convolutional]
739
+ #sparse=1
740
+ batch_normalize=1
741
+ filters=128
742
+ size=1
743
+ stride=1
744
+ pad=1
745
+ activation=relu
746
+
747
+ [convolutional]
748
+ #sparse=1
749
+ batch_normalize=1
750
+ filters=128
751
+ size=3
752
+ stride=1
753
+ pad=1
754
+ activation=relu
755
+
756
+ [convolutional]
757
+ #sparse=1
758
+ batch_normalize=1
759
+ filters=128
760
+ size=3
761
+ stride=1
762
+ pad=1
763
+ activation=relu
764
+
765
+ [convolutional]
766
+ #sparse=1
767
+ batch_normalize=1
768
+ filters=128
769
+ size=3
770
+ stride=1
771
+ pad=1
772
+ activation=relu
773
+
774
+ [convolutional]
775
+ #sparse=1
776
+ batch_normalize=1
777
+ filters=128
778
+ size=3
779
+ stride=1
780
+ pad=1
781
+ activation=relu
782
+
783
+ [route]
784
+ layers = -1,-3,-5,-7
785
+
786
+ [convolutional]
787
+ #sparse=1
788
+ batch_normalize=1
789
+ filters=256
790
+ size=1
791
+ stride=1
792
+ pad=1
793
+ activation=relu
794
+
795
+ #############################
796
+
797
+ # ============ End of Neck ============ #
798
+
799
+ # ============ Head ============ #
800
+
801
+
802
+ # P3
803
+ [route]
804
+ layers = 80
805
+
806
+ [convolutional]
807
+ #sparse=1
808
+ batch_normalize=1
809
+ size=3
810
+ stride=1
811
+ pad=1
812
+ filters=128
813
+ activation=relu
814
+
815
+ [convolutional]
816
+ ##sparse=1
817
+ size=1
818
+ stride=1
819
+ pad=1
820
+ filters=45
821
+ #activation=linear
822
+ activation=logistic
823
+
824
+ [yolo]
825
+ mask = 0,1,2
826
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
827
+ classes=10
828
+ num=9
829
+ jitter=.3
830
+ scale_x_y = 2.0
831
+ ignore_thresh = .5
832
+ truth_thresh = 1
833
+ #random=1
834
+ resize=1.5
835
+ new_coords=1
836
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
837
+ cls_normalizer=0.25
838
+ iou_normalizer=0.05
839
+ iou_loss=ciou
840
+
841
+ # P4
842
+ [route]
843
+ layers = 91
844
+
845
+ [convolutional]
846
+ #sparse=1
847
+ batch_normalize=1
848
+ size=3
849
+ stride=1
850
+ pad=1
851
+ filters=256
852
+ activation=relu
853
+
854
+ [convolutional]
855
+ ##sparse=1
856
+ size=1
857
+ stride=1
858
+ pad=1
859
+ filters=45
860
+ #activation=linear
861
+ activation=logistic
862
+
863
+ [yolo]
864
+ mask = 3,4,5
865
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
866
+ classes=10
867
+ num=9
868
+ jitter=.3
869
+ scale_x_y = 2.0
870
+ ignore_thresh = .5
871
+ truth_thresh = 1
872
+ resize=1.5
873
+ new_coords=1
874
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
875
+ cls_normalizer=0.25
876
+ iou_normalizer=0.05
877
+ iou_loss=ciou
878
+
879
+
880
+ # P5
881
+ [route]
882
+ layers = 102
883
+
884
+ [convolutional]
885
+ #sparse=1
886
+ batch_normalize=1
887
+ size=3
888
+ stride=1
889
+ pad=1
890
+ filters=512
891
+ activation=relu
892
+
893
+ [convolutional]
894
+ ##sparse=1
895
+ size=1
896
+ stride=1
897
+ pad=1
898
+ filters=45
899
+ #activation=linear
900
+ activation=logistic
901
+
902
+ [yolo]
903
+ mask = 6,7,8
904
+ anchors = 7, 14, 17, 21, 11, 38, 31, 40, 21, 84, 57, 69, 87,130, 148,198, 215,337
905
+ classes=10
906
+ num=9
907
+ jitter=.3
908
+ scale_x_y = 2.0
909
+ ignore_thresh = .5
910
+ truth_thresh = 1
911
+ resize=1.5
912
+ new_coords=1
913
+ counters_per_class=8, 2, 2, 1, 2, 1, 8, 1, 8, 4
914
+ cls_normalizer=0.25
915
+ iou_normalizer=0.05
916
+ iou_loss=ciou
917
+
models/driving/lightnet-driving-640x640.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15f10592b8ed79a1573a90f09eec3175ccb708217c6b312ea454124a244bb418
3
+ size 36085680
models/face/lightnet-face-1024x768.cfg ADDED
@@ -0,0 +1,909 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=256
3
+ subdivisions=64
4
+ width=1024
5
+ height=768
6
+ channels=3
7
+ momentum=0.9
8
+ decay=0.0005
9
+ angle=0
10
+ saturation = 1.5
11
+ exposure = 1.5
12
+ hue=.1
13
+
14
+ learning_rate=0.001
15
+ burn_in=100
16
+ max_batches = 1000
17
+ policy=steps
18
+
19
+ steps=50,200,400,800
20
+ scales=.5,.5,.5,.5
21
+ gaussian_noise=1
22
+ flip=1
23
+
24
+ ##sparse=1 : 2:4 structured sparsity
25
+
26
+ [convolutional]
27
+ batch_normalize=1
28
+ filters=32
29
+ size=3
30
+ stride=2
31
+ pad=1
32
+ activation=relu
33
+
34
+ [convolutional]
35
+ #sparse=1
36
+ batch_normalize=1
37
+ filters=64
38
+ size=3
39
+ stride=2
40
+ pad=1
41
+ activation=relu
42
+
43
+ [convolutional]
44
+ #sparse=1
45
+ batch_normalize=1
46
+ filters=32
47
+ size=1
48
+ stride=1
49
+ pad=1
50
+ activation=relu
51
+
52
+ [route]
53
+ layers=-2
54
+
55
+ [convolutional]
56
+ #sparse=1
57
+ batch_normalize=1
58
+ filters=32
59
+ size=1
60
+ stride=1
61
+ pad=1
62
+ activation=relu
63
+
64
+ [convolutional]
65
+ #sparse=1
66
+ batch_normalize=1
67
+ filters=32
68
+ size=3
69
+ stride=1
70
+ pad=1
71
+ activation=relu
72
+
73
+ [convolutional]
74
+ #sparse=1
75
+ batch_normalize=1
76
+ filters=32
77
+ size=3
78
+ stride=1
79
+ pad=1
80
+ activation=relu
81
+
82
+ [convolutional]
83
+ #sparse=1
84
+ batch_normalize=1
85
+ filters=32
86
+ size=3
87
+ stride=1
88
+ pad=1
89
+ activation=relu
90
+
91
+ [convolutional]
92
+ #sparse=1
93
+ batch_normalize=1
94
+ filters=32
95
+ size=3
96
+ stride=1
97
+ pad=1
98
+ activation=relu
99
+
100
+ [route]
101
+ layers = -1,-3,-5,-7
102
+
103
+ [convolutional]
104
+ #sparse=1
105
+ batch_normalize=1
106
+ filters=64
107
+ size=1
108
+ stride=1
109
+ pad=1
110
+ activation=relu
111
+
112
+ [convolutional]
113
+ #sparse=1
114
+ batch_normalize=1
115
+ filters=64
116
+ size=3
117
+ stride=2
118
+ pad=1
119
+ activation=relu
120
+
121
+
122
+ [convolutional]
123
+ #sparse=1
124
+ batch_normalize=1
125
+ filters=64
126
+ size=1
127
+ stride=1
128
+ pad=1
129
+ activation=relu
130
+
131
+ [route]
132
+ layers=-2
133
+
134
+ [convolutional]
135
+ #sparse=1
136
+ batch_normalize=1
137
+ filters=64
138
+ size=1
139
+ stride=1
140
+ pad=1
141
+ activation=relu
142
+
143
+ [convolutional]
144
+ #sparse=1
145
+ batch_normalize=1
146
+ filters=64
147
+ size=3
148
+ stride=1
149
+ pad=1
150
+ activation=relu
151
+
152
+ [convolutional]
153
+ #sparse=1
154
+ batch_normalize=1
155
+ filters=64
156
+ size=3
157
+ stride=1
158
+ pad=1
159
+ activation=relu
160
+
161
+ [convolutional]
162
+ #sparse=1
163
+ batch_normalize=1
164
+ filters=64
165
+ size=3
166
+ stride=1
167
+ pad=1
168
+ activation=relu
169
+
170
+ [convolutional]
171
+ #sparse=1
172
+ batch_normalize=1
173
+ filters=64
174
+ size=3
175
+ stride=1
176
+ pad=1
177
+ activation=relu
178
+
179
+ [route]
180
+ layers = -1,-3,-5,-7
181
+
182
+ [convolutional]
183
+ #sparse=1
184
+ batch_normalize=1
185
+ filters=128
186
+ size=1
187
+ stride=1
188
+ pad=1
189
+ activation=relu
190
+
191
+ [convolutional]
192
+ #sparse=1
193
+ batch_normalize=1
194
+ filters=128
195
+ size=3
196
+ stride=2
197
+ pad=1
198
+ activation=relu
199
+
200
+ [convolutional]
201
+ #sparse=1
202
+ batch_normalize=1
203
+ filters=128
204
+ size=1
205
+ stride=1
206
+ pad=1
207
+ activation=relu
208
+
209
+ [route]
210
+ layers=-2
211
+
212
+ [convolutional]
213
+ #sparse=1
214
+ batch_normalize=1
215
+ filters=128
216
+ size=1
217
+ stride=1
218
+ pad=1
219
+ activation=relu
220
+
221
+ [convolutional]
222
+ #sparse=1
223
+ batch_normalize=1
224
+ filters=128
225
+ size=3
226
+ stride=1
227
+ pad=1
228
+ activation=relu
229
+
230
+ [convolutional]
231
+ #sparse=1
232
+ batch_normalize=1
233
+ filters=128
234
+ size=3
235
+ stride=1
236
+ pad=1
237
+ activation=relu
238
+
239
+ [convolutional]
240
+ #sparse=1
241
+ batch_normalize=1
242
+ filters=128
243
+ size=3
244
+ stride=1
245
+ pad=1
246
+ activation=relu
247
+
248
+ [convolutional]
249
+ #sparse=1
250
+ batch_normalize=1
251
+ filters=128
252
+ size=3
253
+ stride=1
254
+ pad=1
255
+ activation=relu
256
+
257
+ [route]
258
+ layers = -1,-3,-5,-7
259
+
260
+ [convolutional]
261
+ #sparse=1
262
+ batch_normalize=1
263
+ filters=256
264
+ size=1
265
+ stride=1
266
+ pad=1
267
+ activation=relu
268
+
269
+ [convolutional]
270
+ #sparse=1
271
+ batch_normalize=1
272
+ filters=256
273
+ size=3
274
+ stride=2
275
+ pad=1
276
+ activation=relu
277
+
278
+ [convolutional]
279
+ #sparse=1
280
+ batch_normalize=1
281
+ filters=256
282
+ size=1
283
+ stride=1
284
+ pad=1
285
+ activation=relu
286
+
287
+ [route]
288
+ layers=-2
289
+
290
+ [convolutional]
291
+ #sparse=1
292
+ batch_normalize=1
293
+ filters=256
294
+ size=1
295
+ stride=1
296
+ pad=1
297
+ activation=relu
298
+
299
+ [convolutional]
300
+ #sparse=1
301
+ batch_normalize=1
302
+ filters=256
303
+ size=3
304
+ stride=1
305
+ pad=1
306
+ activation=relu
307
+
308
+ [convolutional]
309
+ #sparse=1
310
+ batch_normalize=1
311
+ filters=256
312
+ size=3
313
+ stride=1
314
+ pad=1
315
+ activation=relu
316
+
317
+ [convolutional]
318
+ #sparse=1
319
+ batch_normalize=1
320
+ filters=256
321
+ size=3
322
+ stride=1
323
+ pad=1
324
+ activation=relu
325
+
326
+ [convolutional]
327
+ #sparse=1
328
+ batch_normalize=1
329
+ filters=256
330
+ size=3
331
+ stride=1
332
+ pad=1
333
+ activation=relu
334
+
335
+ [route]
336
+ layers = -1,-3,-5,-7
337
+
338
+ [convolutional]
339
+ #sparse=1
340
+ batch_normalize=1
341
+ filters=512
342
+ size=1
343
+ stride=1
344
+ pad=1
345
+ activation=relu
346
+
347
+
348
+ ##################################
349
+
350
+ ### ASPPCSP ###
351
+ [convolutional]
352
+ #sparse=1
353
+ batch_normalize=1
354
+ filters=256
355
+ size=1
356
+ stride=1
357
+ pad=1
358
+ activation=relu
359
+
360
+ [route]
361
+ layers = -2
362
+
363
+ [convolutional]
364
+ #sparse=1
365
+ batch_normalize=1
366
+ filters=256
367
+ size=1
368
+ stride=1
369
+ pad=1
370
+ activation=relu
371
+
372
+ ### ASPP ###
373
+ [convolutional]
374
+ #sparse=1
375
+ batch_normalize=1
376
+ filters=256
377
+ size=1
378
+ stride=1
379
+ pad=1
380
+ dilation=1
381
+ activation=relu
382
+
383
+ [route]
384
+ layers=-2
385
+
386
+ [convolutional]
387
+ #sparse=1
388
+ batch_normalize=1
389
+ filters=256
390
+ size=1
391
+ stride=1
392
+ pad=1
393
+ dilation=3
394
+ activation=relu
395
+
396
+ [route]
397
+ layers=-4
398
+
399
+ [convolutional]
400
+ #sparse=1
401
+ batch_normalize=1
402
+ filters=256
403
+ size=1
404
+ stride=1
405
+ pad=1
406
+ dilation=5
407
+ activation=relu
408
+
409
+ [route]
410
+ layers=-1,-3,-5,-6
411
+ ### End ASPP ###
412
+
413
+ [convolutional]
414
+ #sparse=1
415
+ batch_normalize=1
416
+ filters=256
417
+ size=1
418
+ stride=1
419
+ pad=1
420
+ activation=relu
421
+
422
+ [route]
423
+ layers = -10,-1
424
+
425
+ # 44
426
+ [convolutional]
427
+ #sparse=1
428
+ batch_normalize=1
429
+ filters=256
430
+ size=1
431
+ stride=1
432
+ pad=1
433
+ activation=relu
434
+ ### End ASPPCSP ###
435
+
436
+ [convolutional]
437
+ #sparse=1
438
+ batch_normalize=1
439
+ filters=128
440
+ size=1
441
+ stride=1
442
+ pad=1
443
+ activation=relu
444
+
445
+ [upsample]
446
+ stride=2
447
+
448
+ [route]
449
+ layers = 30
450
+
451
+ [convolutional]
452
+ #sparse=1
453
+ batch_normalize=1
454
+ filters=128
455
+ size=1
456
+ stride=1
457
+ pad=1
458
+ activation=relu
459
+
460
+ [route]
461
+ layers = -1,-3
462
+
463
+ [convolutional]
464
+ #sparse=1
465
+ batch_normalize=1
466
+ filters=64
467
+ size=1
468
+ stride=1
469
+ pad=1
470
+ activation=relu
471
+
472
+ [route]
473
+ layers=-2
474
+
475
+ [convolutional]
476
+ #sparse=1
477
+ batch_normalize=1
478
+ filters=64
479
+ size=1
480
+ stride=1
481
+ pad=1
482
+ activation=relu
483
+
484
+ [convolutional]
485
+ #sparse=1
486
+ batch_normalize=1
487
+ filters=64
488
+ size=3
489
+ stride=1
490
+ pad=1
491
+ activation=relu
492
+
493
+ [convolutional]
494
+ #sparse=1
495
+ batch_normalize=1
496
+ filters=64
497
+ size=3
498
+ stride=1
499
+ pad=1
500
+ activation=relu
501
+
502
+ [convolutional]
503
+ #sparse=1
504
+ batch_normalize=1
505
+ filters=64
506
+ size=3
507
+ stride=1
508
+ pad=1
509
+ activation=relu
510
+
511
+ [convolutional]
512
+ #sparse=1
513
+ batch_normalize=1
514
+ filters=64
515
+ size=3
516
+ stride=1
517
+ pad=1
518
+ activation=relu
519
+
520
+ [route]
521
+ layers = -1,-3,-5,-7
522
+
523
+
524
+ # 56
525
+ [convolutional]
526
+ #sparse=1
527
+ batch_normalize=1
528
+ filters=128
529
+ size=1
530
+ stride=1
531
+ pad=1
532
+ activation=relu
533
+
534
+ [convolutional]
535
+ #sparse=1
536
+ batch_normalize=1
537
+ filters=64
538
+ size=1
539
+ stride=1
540
+ pad=1
541
+ activation=relu
542
+
543
+ [upsample]
544
+ stride=2
545
+
546
+ [route]
547
+ layers = 20
548
+
549
+ [convolutional]
550
+ #sparse=1
551
+ batch_normalize=1
552
+ filters=64
553
+ size=1
554
+ stride=1
555
+ pad=1
556
+ activation=relu
557
+
558
+ [route]
559
+ layers = -1,-3
560
+
561
+ [convolutional]
562
+ #sparse=1
563
+ batch_normalize=1
564
+ filters=32
565
+ size=1
566
+ stride=1
567
+ pad=1
568
+ activation=relu
569
+
570
+ [route]
571
+ layers=-2
572
+
573
+ [convolutional]
574
+ #sparse=1
575
+ batch_normalize=1
576
+ filters=32
577
+ size=1
578
+ stride=1
579
+ pad=1
580
+ activation=relu
581
+
582
+ [convolutional]
583
+ #sparse=1
584
+ batch_normalize=1
585
+ filters=32
586
+ size=3
587
+ stride=1
588
+ pad=1
589
+ activation=relu
590
+
591
+ [convolutional]
592
+ #sparse=1
593
+ batch_normalize=1
594
+ filters=32
595
+ size=3
596
+ stride=1
597
+ pad=1
598
+ activation=relu
599
+
600
+ [convolutional]
601
+ #sparse=1
602
+ batch_normalize=1
603
+ filters=32
604
+ size=3
605
+ stride=1
606
+ pad=1
607
+ activation=relu
608
+
609
+ [convolutional]
610
+ #sparse=1
611
+ batch_normalize=1
612
+ filters=32
613
+ size=3
614
+ stride=1
615
+ pad=1
616
+ activation=relu
617
+
618
+ [route]
619
+ layers = -1,-3,-5,-7
620
+
621
+ [convolutional]
622
+ #sparse=1
623
+ batch_normalize=1
624
+ filters=64
625
+ size=1
626
+ stride=1
627
+ pad=1
628
+ activation=relu
629
+
630
+
631
+ [convolutional]
632
+ #sparse=1
633
+ batch_normalize=1
634
+ size=3
635
+ stride=2
636
+ pad=1
637
+ filters=128
638
+ activation=relu
639
+
640
+ [route]
641
+ layers = -1,67
642
+
643
+ [convolutional]
644
+ #sparse=1
645
+ batch_normalize=1
646
+ filters=64
647
+ size=1
648
+ stride=1
649
+ pad=1
650
+ activation=relu
651
+
652
+ [route]
653
+ layers=-2
654
+
655
+ [convolutional]
656
+ #sparse=1
657
+ batch_normalize=1
658
+ filters=64
659
+ size=1
660
+ stride=1
661
+ pad=1
662
+ activation=relu
663
+
664
+ [convolutional]
665
+ #sparse=1
666
+ batch_normalize=1
667
+ filters=64
668
+ size=3
669
+ stride=1
670
+ pad=1
671
+ activation=relu
672
+
673
+ [convolutional]
674
+ #sparse=1
675
+ batch_normalize=1
676
+ filters=64
677
+ size=3
678
+ stride=1
679
+ pad=1
680
+ activation=relu
681
+
682
+ [convolutional]
683
+ #sparse=1
684
+ batch_normalize=1
685
+ filters=64
686
+ size=3
687
+ stride=1
688
+ pad=1
689
+ activation=relu
690
+
691
+ [convolutional]
692
+ #sparse=1
693
+ batch_normalize=1
694
+ filters=64
695
+ size=3
696
+ stride=1
697
+ pad=1
698
+ activation=relu
699
+
700
+ [route]
701
+ layers = -1,-3,-5,-7
702
+
703
+ [convolutional]
704
+ #sparse=1
705
+ batch_normalize=1
706
+ filters=128
707
+ size=1
708
+ stride=1
709
+ pad=1
710
+ activation=relu
711
+
712
+ [convolutional]
713
+ #sparse=1
714
+ batch_normalize=1
715
+ size=3
716
+ stride=2
717
+ pad=1
718
+ filters=256
719
+ activation=relu
720
+
721
+ [route]
722
+ layers = -1,53
723
+
724
+ [convolutional]
725
+ #sparse=1
726
+ batch_normalize=1
727
+ filters=128
728
+ size=1
729
+ stride=1
730
+ pad=1
731
+ activation=relu
732
+
733
+ [route]
734
+ layers=-2
735
+
736
+ [convolutional]
737
+ #sparse=1
738
+ batch_normalize=1
739
+ filters=128
740
+ size=1
741
+ stride=1
742
+ pad=1
743
+ activation=relu
744
+
745
+ [convolutional]
746
+ #sparse=1
747
+ batch_normalize=1
748
+ filters=128
749
+ size=3
750
+ stride=1
751
+ pad=1
752
+ activation=relu
753
+
754
+ [convolutional]
755
+ #sparse=1
756
+ batch_normalize=1
757
+ filters=128
758
+ size=3
759
+ stride=1
760
+ pad=1
761
+ activation=relu
762
+
763
+ [convolutional]
764
+ #sparse=1
765
+ batch_normalize=1
766
+ filters=128
767
+ size=3
768
+ stride=1
769
+ pad=1
770
+ activation=relu
771
+
772
+ [convolutional]
773
+ #sparse=1
774
+ batch_normalize=1
775
+ filters=128
776
+ size=3
777
+ stride=1
778
+ pad=1
779
+ activation=relu
780
+
781
+ [route]
782
+ layers = -1,-3,-5,-7
783
+
784
+ [convolutional]
785
+ #sparse=1
786
+ batch_normalize=1
787
+ filters=256
788
+ size=1
789
+ stride=1
790
+ pad=1
791
+ activation=relu
792
+
793
+ #############################
794
+
795
+ # ============ End of Neck ============ #
796
+
797
+ # ============ Head ============ #
798
+
799
+
800
+ # P3
801
+ [route]
802
+ layers = 80
803
+
804
+ [convolutional]
805
+ #sparse=1
806
+ batch_normalize=1
807
+ size=3
808
+ stride=1
809
+ pad=1
810
+ filters=128
811
+ activation=relu
812
+
813
+ [convolutional]
814
+ ##sparse=1
815
+ size=1
816
+ stride=1
817
+ pad=1
818
+ filters=18
819
+ #activation=linear
820
+ activation=logistic
821
+
822
+ [yolo]
823
+ mask = 0,1,2
824
+ anchors = 7, 8, 12, 16, 20, 28, 33, 45, 53, 70, 92,110, 151,187, 268,292, 451,446
825
+ classes=1
826
+ num=9
827
+ jitter=.3
828
+ scale_x_y = 2.0
829
+ ignore_thresh = .5
830
+ truth_thresh = 1
831
+ #random=1
832
+ resize=1.5
833
+ new_coords=1
834
+ iou_normalizer=0.05
835
+ # iou_loss=ciou
836
+
837
+ # P4
838
+ [route]
839
+ layers = 91
840
+
841
+ [convolutional]
842
+ #sparse=1
843
+ batch_normalize=1
844
+ size=3
845
+ stride=1
846
+ pad=1
847
+ filters=256
848
+ activation=relu
849
+
850
+ [convolutional]
851
+ ##sparse=1
852
+ size=1
853
+ stride=1
854
+ pad=1
855
+ filters=18
856
+ #activation=linear
857
+ activation=logistic
858
+
859
+ [yolo]
860
+ mask = 3,4,5
861
+ anchors = 7, 8, 12, 16, 20, 28, 33, 45, 53, 70, 92,110, 151,187, 268,292, 451,446
862
+ classes=1
863
+ num=9
864
+ jitter=.3
865
+ scale_x_y = 2.0
866
+ ignore_thresh = .5
867
+ truth_thresh = 1
868
+ resize=1.5
869
+ new_coords=1
870
+ iou_normalizer=0.05
871
+ # iou_loss=ciou
872
+
873
+
874
+ # P5
875
+ [route]
876
+ layers = 102
877
+
878
+ [convolutional]
879
+ #sparse=1
880
+ batch_normalize=1
881
+ size=3
882
+ stride=1
883
+ pad=1
884
+ filters=512
885
+ activation=relu
886
+
887
+ [convolutional]
888
+ ##sparse=1
889
+ size=1
890
+ stride=1
891
+ pad=1
892
+ filters=18
893
+ #activation=linear
894
+ activation=logistic
895
+
896
+ [yolo]
897
+ mask = 6,7,8
898
+ anchors = 7, 8, 12, 16, 20, 28, 33, 45, 53, 70, 92,110, 151,187, 268,292, 451,446
899
+ classes=1
900
+ num=9
901
+ jitter=.3
902
+ scale_x_y = 2.0
903
+ ignore_thresh = .5
904
+ truth_thresh = 1
905
+ resize=1.5
906
+ new_coords=1
907
+ iou_normalizer=0.05
908
+ # iou_loss=ciou
909
+
models/face/lightnet-face-1024x768.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f30f7de49613a418daedfc5dcb118b85eef5e3662daa80b803fe87f8303a9649
3
+ size 35988588
models/face/lightnet-face-640x640.cfg ADDED
@@ -0,0 +1,908 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=8
3
+ width=640
4
+ height=640
5
+ channels=3
6
+ momentum=0.9
7
+ decay=0.0005
8
+ angle=0
9
+ saturation = 1.5
10
+ exposure = 1.5
11
+ hue=.1
12
+
13
+ learning_rate=0.001
14
+ burn_in=500
15
+ max_batches = 483000
16
+ policy=steps
17
+
18
+ steps=24000,96000,192000,384000
19
+ scales=.5,.5,.5,.5
20
+ gaussian_noise=1
21
+ flip=1
22
+
23
+ ##sparse=1 : 2:4 structured sparsity
24
+
25
+ [convolutional]
26
+ batch_normalize=1
27
+ filters=32
28
+ size=3
29
+ stride=2
30
+ pad=1
31
+ activation=relu
32
+
33
+ [convolutional]
34
+ #sparse=1
35
+ batch_normalize=1
36
+ filters=64
37
+ size=3
38
+ stride=2
39
+ pad=1
40
+ activation=relu
41
+
42
+ [convolutional]
43
+ #sparse=1
44
+ batch_normalize=1
45
+ filters=32
46
+ size=1
47
+ stride=1
48
+ pad=1
49
+ activation=relu
50
+
51
+ [route]
52
+ layers=-2
53
+
54
+ [convolutional]
55
+ #sparse=1
56
+ batch_normalize=1
57
+ filters=32
58
+ size=1
59
+ stride=1
60
+ pad=1
61
+ activation=relu
62
+
63
+ [convolutional]
64
+ #sparse=1
65
+ batch_normalize=1
66
+ filters=32
67
+ size=3
68
+ stride=1
69
+ pad=1
70
+ activation=relu
71
+
72
+ [convolutional]
73
+ #sparse=1
74
+ batch_normalize=1
75
+ filters=32
76
+ size=3
77
+ stride=1
78
+ pad=1
79
+ activation=relu
80
+
81
+ [convolutional]
82
+ #sparse=1
83
+ batch_normalize=1
84
+ filters=32
85
+ size=3
86
+ stride=1
87
+ pad=1
88
+ activation=relu
89
+
90
+ [convolutional]
91
+ #sparse=1
92
+ batch_normalize=1
93
+ filters=32
94
+ size=3
95
+ stride=1
96
+ pad=1
97
+ activation=relu
98
+
99
+ [route]
100
+ layers = -1,-3,-5,-7
101
+
102
+ [convolutional]
103
+ #sparse=1
104
+ batch_normalize=1
105
+ filters=64
106
+ size=1
107
+ stride=1
108
+ pad=1
109
+ activation=relu
110
+
111
+ [convolutional]
112
+ #sparse=1
113
+ batch_normalize=1
114
+ filters=64
115
+ size=3
116
+ stride=2
117
+ pad=1
118
+ activation=relu
119
+
120
+
121
+ [convolutional]
122
+ #sparse=1
123
+ batch_normalize=1
124
+ filters=64
125
+ size=1
126
+ stride=1
127
+ pad=1
128
+ activation=relu
129
+
130
+ [route]
131
+ layers=-2
132
+
133
+ [convolutional]
134
+ #sparse=1
135
+ batch_normalize=1
136
+ filters=64
137
+ size=1
138
+ stride=1
139
+ pad=1
140
+ activation=relu
141
+
142
+ [convolutional]
143
+ #sparse=1
144
+ batch_normalize=1
145
+ filters=64
146
+ size=3
147
+ stride=1
148
+ pad=1
149
+ activation=relu
150
+
151
+ [convolutional]
152
+ #sparse=1
153
+ batch_normalize=1
154
+ filters=64
155
+ size=3
156
+ stride=1
157
+ pad=1
158
+ activation=relu
159
+
160
+ [convolutional]
161
+ #sparse=1
162
+ batch_normalize=1
163
+ filters=64
164
+ size=3
165
+ stride=1
166
+ pad=1
167
+ activation=relu
168
+
169
+ [convolutional]
170
+ #sparse=1
171
+ batch_normalize=1
172
+ filters=64
173
+ size=3
174
+ stride=1
175
+ pad=1
176
+ activation=relu
177
+
178
+ [route]
179
+ layers = -1,-3,-5,-7
180
+
181
+ [convolutional]
182
+ #sparse=1
183
+ batch_normalize=1
184
+ filters=128
185
+ size=1
186
+ stride=1
187
+ pad=1
188
+ activation=relu
189
+
190
+ [convolutional]
191
+ #sparse=1
192
+ batch_normalize=1
193
+ filters=128
194
+ size=3
195
+ stride=2
196
+ pad=1
197
+ activation=relu
198
+
199
+ [convolutional]
200
+ #sparse=1
201
+ batch_normalize=1
202
+ filters=128
203
+ size=1
204
+ stride=1
205
+ pad=1
206
+ activation=relu
207
+
208
+ [route]
209
+ layers=-2
210
+
211
+ [convolutional]
212
+ #sparse=1
213
+ batch_normalize=1
214
+ filters=128
215
+ size=1
216
+ stride=1
217
+ pad=1
218
+ activation=relu
219
+
220
+ [convolutional]
221
+ #sparse=1
222
+ batch_normalize=1
223
+ filters=128
224
+ size=3
225
+ stride=1
226
+ pad=1
227
+ activation=relu
228
+
229
+ [convolutional]
230
+ #sparse=1
231
+ batch_normalize=1
232
+ filters=128
233
+ size=3
234
+ stride=1
235
+ pad=1
236
+ activation=relu
237
+
238
+ [convolutional]
239
+ #sparse=1
240
+ batch_normalize=1
241
+ filters=128
242
+ size=3
243
+ stride=1
244
+ pad=1
245
+ activation=relu
246
+
247
+ [convolutional]
248
+ #sparse=1
249
+ batch_normalize=1
250
+ filters=128
251
+ size=3
252
+ stride=1
253
+ pad=1
254
+ activation=relu
255
+
256
+ [route]
257
+ layers = -1,-3,-5,-7
258
+
259
+ [convolutional]
260
+ #sparse=1
261
+ batch_normalize=1
262
+ filters=256
263
+ size=1
264
+ stride=1
265
+ pad=1
266
+ activation=relu
267
+
268
+ [convolutional]
269
+ #sparse=1
270
+ batch_normalize=1
271
+ filters=256
272
+ size=3
273
+ stride=2
274
+ pad=1
275
+ activation=relu
276
+
277
+ [convolutional]
278
+ #sparse=1
279
+ batch_normalize=1
280
+ filters=256
281
+ size=1
282
+ stride=1
283
+ pad=1
284
+ activation=relu
285
+
286
+ [route]
287
+ layers=-2
288
+
289
+ [convolutional]
290
+ #sparse=1
291
+ batch_normalize=1
292
+ filters=256
293
+ size=1
294
+ stride=1
295
+ pad=1
296
+ activation=relu
297
+
298
+ [convolutional]
299
+ #sparse=1
300
+ batch_normalize=1
301
+ filters=256
302
+ size=3
303
+ stride=1
304
+ pad=1
305
+ activation=relu
306
+
307
+ [convolutional]
308
+ #sparse=1
309
+ batch_normalize=1
310
+ filters=256
311
+ size=3
312
+ stride=1
313
+ pad=1
314
+ activation=relu
315
+
316
+ [convolutional]
317
+ #sparse=1
318
+ batch_normalize=1
319
+ filters=256
320
+ size=3
321
+ stride=1
322
+ pad=1
323
+ activation=relu
324
+
325
+ [convolutional]
326
+ #sparse=1
327
+ batch_normalize=1
328
+ filters=256
329
+ size=3
330
+ stride=1
331
+ pad=1
332
+ activation=relu
333
+
334
+ [route]
335
+ layers = -1,-3,-5,-7
336
+
337
+ [convolutional]
338
+ #sparse=1
339
+ batch_normalize=1
340
+ filters=512
341
+ size=1
342
+ stride=1
343
+ pad=1
344
+ activation=relu
345
+
346
+
347
+ ##################################
348
+
349
+ ### ASPPCSP ###
350
+ [convolutional]
351
+ #sparse=1
352
+ batch_normalize=1
353
+ filters=256
354
+ size=1
355
+ stride=1
356
+ pad=1
357
+ activation=relu
358
+
359
+ [route]
360
+ layers = -2
361
+
362
+ [convolutional]
363
+ #sparse=1
364
+ batch_normalize=1
365
+ filters=256
366
+ size=1
367
+ stride=1
368
+ pad=1
369
+ activation=relu
370
+
371
+ ### ASPP ###
372
+ [convolutional]
373
+ #sparse=1
374
+ batch_normalize=1
375
+ filters=256
376
+ size=1
377
+ stride=1
378
+ pad=1
379
+ dilation=1
380
+ activation=relu
381
+
382
+ [route]
383
+ layers=-2
384
+
385
+ [convolutional]
386
+ #sparse=1
387
+ batch_normalize=1
388
+ filters=256
389
+ size=1
390
+ stride=1
391
+ pad=1
392
+ dilation=3
393
+ activation=relu
394
+
395
+ [route]
396
+ layers=-4
397
+
398
+ [convolutional]
399
+ #sparse=1
400
+ batch_normalize=1
401
+ filters=256
402
+ size=1
403
+ stride=1
404
+ pad=1
405
+ dilation=5
406
+ activation=relu
407
+
408
+ [route]
409
+ layers=-1,-3,-5,-6
410
+ ### End ASPP ###
411
+
412
+ [convolutional]
413
+ #sparse=1
414
+ batch_normalize=1
415
+ filters=256
416
+ size=1
417
+ stride=1
418
+ pad=1
419
+ activation=relu
420
+
421
+ [route]
422
+ layers = -10,-1
423
+
424
+ # 44
425
+ [convolutional]
426
+ #sparse=1
427
+ batch_normalize=1
428
+ filters=256
429
+ size=1
430
+ stride=1
431
+ pad=1
432
+ activation=relu
433
+ ### End ASPPCSP ###
434
+
435
+ [convolutional]
436
+ #sparse=1
437
+ batch_normalize=1
438
+ filters=128
439
+ size=1
440
+ stride=1
441
+ pad=1
442
+ activation=relu
443
+
444
+ [upsample]
445
+ stride=2
446
+
447
+ [route]
448
+ layers = 30
449
+
450
+ [convolutional]
451
+ #sparse=1
452
+ batch_normalize=1
453
+ filters=128
454
+ size=1
455
+ stride=1
456
+ pad=1
457
+ activation=relu
458
+
459
+ [route]
460
+ layers = -1,-3
461
+
462
+ [convolutional]
463
+ #sparse=1
464
+ batch_normalize=1
465
+ filters=64
466
+ size=1
467
+ stride=1
468
+ pad=1
469
+ activation=relu
470
+
471
+ [route]
472
+ layers=-2
473
+
474
+ [convolutional]
475
+ #sparse=1
476
+ batch_normalize=1
477
+ filters=64
478
+ size=1
479
+ stride=1
480
+ pad=1
481
+ activation=relu
482
+
483
+ [convolutional]
484
+ #sparse=1
485
+ batch_normalize=1
486
+ filters=64
487
+ size=3
488
+ stride=1
489
+ pad=1
490
+ activation=relu
491
+
492
+ [convolutional]
493
+ #sparse=1
494
+ batch_normalize=1
495
+ filters=64
496
+ size=3
497
+ stride=1
498
+ pad=1
499
+ activation=relu
500
+
501
+ [convolutional]
502
+ #sparse=1
503
+ batch_normalize=1
504
+ filters=64
505
+ size=3
506
+ stride=1
507
+ pad=1
508
+ activation=relu
509
+
510
+ [convolutional]
511
+ #sparse=1
512
+ batch_normalize=1
513
+ filters=64
514
+ size=3
515
+ stride=1
516
+ pad=1
517
+ activation=relu
518
+
519
+ [route]
520
+ layers = -1,-3,-5,-7
521
+
522
+
523
+ # 56
524
+ [convolutional]
525
+ #sparse=1
526
+ batch_normalize=1
527
+ filters=128
528
+ size=1
529
+ stride=1
530
+ pad=1
531
+ activation=relu
532
+
533
+ [convolutional]
534
+ #sparse=1
535
+ batch_normalize=1
536
+ filters=64
537
+ size=1
538
+ stride=1
539
+ pad=1
540
+ activation=relu
541
+
542
+ [upsample]
543
+ stride=2
544
+
545
+ [route]
546
+ layers = 20
547
+
548
+ [convolutional]
549
+ #sparse=1
550
+ batch_normalize=1
551
+ filters=64
552
+ size=1
553
+ stride=1
554
+ pad=1
555
+ activation=relu
556
+
557
+ [route]
558
+ layers = -1,-3
559
+
560
+ [convolutional]
561
+ #sparse=1
562
+ batch_normalize=1
563
+ filters=32
564
+ size=1
565
+ stride=1
566
+ pad=1
567
+ activation=relu
568
+
569
+ [route]
570
+ layers=-2
571
+
572
+ [convolutional]
573
+ #sparse=1
574
+ batch_normalize=1
575
+ filters=32
576
+ size=1
577
+ stride=1
578
+ pad=1
579
+ activation=relu
580
+
581
+ [convolutional]
582
+ #sparse=1
583
+ batch_normalize=1
584
+ filters=32
585
+ size=3
586
+ stride=1
587
+ pad=1
588
+ activation=relu
589
+
590
+ [convolutional]
591
+ #sparse=1
592
+ batch_normalize=1
593
+ filters=32
594
+ size=3
595
+ stride=1
596
+ pad=1
597
+ activation=relu
598
+
599
+ [convolutional]
600
+ #sparse=1
601
+ batch_normalize=1
602
+ filters=32
603
+ size=3
604
+ stride=1
605
+ pad=1
606
+ activation=relu
607
+
608
+ [convolutional]
609
+ #sparse=1
610
+ batch_normalize=1
611
+ filters=32
612
+ size=3
613
+ stride=1
614
+ pad=1
615
+ activation=relu
616
+
617
+ [route]
618
+ layers = -1,-3,-5,-7
619
+
620
+ [convolutional]
621
+ #sparse=1
622
+ batch_normalize=1
623
+ filters=64
624
+ size=1
625
+ stride=1
626
+ pad=1
627
+ activation=relu
628
+
629
+
630
+ [convolutional]
631
+ #sparse=1
632
+ batch_normalize=1
633
+ size=3
634
+ stride=2
635
+ pad=1
636
+ filters=128
637
+ activation=relu
638
+
639
+ [route]
640
+ layers = -1,67
641
+
642
+ [convolutional]
643
+ #sparse=1
644
+ batch_normalize=1
645
+ filters=64
646
+ size=1
647
+ stride=1
648
+ pad=1
649
+ activation=relu
650
+
651
+ [route]
652
+ layers=-2
653
+
654
+ [convolutional]
655
+ #sparse=1
656
+ batch_normalize=1
657
+ filters=64
658
+ size=1
659
+ stride=1
660
+ pad=1
661
+ activation=relu
662
+
663
+ [convolutional]
664
+ #sparse=1
665
+ batch_normalize=1
666
+ filters=64
667
+ size=3
668
+ stride=1
669
+ pad=1
670
+ activation=relu
671
+
672
+ [convolutional]
673
+ #sparse=1
674
+ batch_normalize=1
675
+ filters=64
676
+ size=3
677
+ stride=1
678
+ pad=1
679
+ activation=relu
680
+
681
+ [convolutional]
682
+ #sparse=1
683
+ batch_normalize=1
684
+ filters=64
685
+ size=3
686
+ stride=1
687
+ pad=1
688
+ activation=relu
689
+
690
+ [convolutional]
691
+ #sparse=1
692
+ batch_normalize=1
693
+ filters=64
694
+ size=3
695
+ stride=1
696
+ pad=1
697
+ activation=relu
698
+
699
+ [route]
700
+ layers = -1,-3,-5,-7
701
+
702
+ [convolutional]
703
+ #sparse=1
704
+ batch_normalize=1
705
+ filters=128
706
+ size=1
707
+ stride=1
708
+ pad=1
709
+ activation=relu
710
+
711
+ [convolutional]
712
+ #sparse=1
713
+ batch_normalize=1
714
+ size=3
715
+ stride=2
716
+ pad=1
717
+ filters=256
718
+ activation=relu
719
+
720
+ [route]
721
+ layers = -1,53
722
+
723
+ [convolutional]
724
+ #sparse=1
725
+ batch_normalize=1
726
+ filters=128
727
+ size=1
728
+ stride=1
729
+ pad=1
730
+ activation=relu
731
+
732
+ [route]
733
+ layers=-2
734
+
735
+ [convolutional]
736
+ #sparse=1
737
+ batch_normalize=1
738
+ filters=128
739
+ size=1
740
+ stride=1
741
+ pad=1
742
+ activation=relu
743
+
744
+ [convolutional]
745
+ #sparse=1
746
+ batch_normalize=1
747
+ filters=128
748
+ size=3
749
+ stride=1
750
+ pad=1
751
+ activation=relu
752
+
753
+ [convolutional]
754
+ #sparse=1
755
+ batch_normalize=1
756
+ filters=128
757
+ size=3
758
+ stride=1
759
+ pad=1
760
+ activation=relu
761
+
762
+ [convolutional]
763
+ #sparse=1
764
+ batch_normalize=1
765
+ filters=128
766
+ size=3
767
+ stride=1
768
+ pad=1
769
+ activation=relu
770
+
771
+ [convolutional]
772
+ #sparse=1
773
+ batch_normalize=1
774
+ filters=128
775
+ size=3
776
+ stride=1
777
+ pad=1
778
+ activation=relu
779
+
780
+ [route]
781
+ layers = -1,-3,-5,-7
782
+
783
+ [convolutional]
784
+ #sparse=1
785
+ batch_normalize=1
786
+ filters=256
787
+ size=1
788
+ stride=1
789
+ pad=1
790
+ activation=relu
791
+
792
+ #############################
793
+
794
+ # ============ End of Neck ============ #
795
+
796
+ # ============ Head ============ #
797
+
798
+
799
+ # P3
800
+ [route]
801
+ layers = 80
802
+
803
+ [convolutional]
804
+ #sparse=1
805
+ batch_normalize=1
806
+ size=3
807
+ stride=1
808
+ pad=1
809
+ filters=128
810
+ activation=relu
811
+
812
+ [convolutional]
813
+ ##sparse=1
814
+ size=1
815
+ stride=1
816
+ pad=1
817
+ filters=18
818
+ #activation=linear
819
+ activation=logistic
820
+
821
+ [yolo]
822
+ mask = 0,1,2
823
+ anchors = 4, 7, 7, 14, 12, 23, 20, 36, 32, 56, 54, 86, 84,145, 148,218, 254,338
824
+ classes=1
825
+ num=9
826
+ jitter=.3
827
+ scale_x_y = 2.0
828
+ ignore_thresh = .5
829
+ truth_thresh = 1
830
+ #random=1
831
+ resize=1.5
832
+ new_coords=1
833
+ iou_normalizer=0.05
834
+ iou_loss=ciou
835
+
836
+ # P4
837
+ [route]
838
+ layers = 91
839
+
840
+ [convolutional]
841
+ #sparse=1
842
+ batch_normalize=1
843
+ size=3
844
+ stride=1
845
+ pad=1
846
+ filters=256
847
+ activation=relu
848
+
849
+ [convolutional]
850
+ ##sparse=1
851
+ size=1
852
+ stride=1
853
+ pad=1
854
+ filters=18
855
+ #activation=linear
856
+ activation=logistic
857
+
858
+ [yolo]
859
+ mask = 3,4,5
860
+ anchors = 4, 7, 7, 14, 12, 23, 20, 36, 32, 56, 54, 86, 84,145, 148,218, 254,338
861
+ classes=1
862
+ num=9
863
+ jitter=.3
864
+ scale_x_y = 2.0
865
+ ignore_thresh = .5
866
+ truth_thresh = 1
867
+ resize=1.5
868
+ new_coords=1
869
+ iou_normalizer=0.05
870
+ iou_loss=ciou
871
+
872
+
873
+ # P5
874
+ [route]
875
+ layers = 102
876
+
877
+ [convolutional]
878
+ #sparse=1
879
+ batch_normalize=1
880
+ size=3
881
+ stride=1
882
+ pad=1
883
+ filters=512
884
+ activation=relu
885
+
886
+ [convolutional]
887
+ ##sparse=1
888
+ size=1
889
+ stride=1
890
+ pad=1
891
+ filters=18
892
+ #activation=linear
893
+ activation=logistic
894
+
895
+ [yolo]
896
+ mask = 6,7,8
897
+ anchors = 4, 7, 7, 14, 12, 23, 20, 36, 32, 56, 54, 86, 84,145, 148,218, 254,338
898
+ classes=1
899
+ num=9
900
+ jitter=.3
901
+ scale_x_y = 2.0
902
+ ignore_thresh = .5
903
+ truth_thresh = 1
904
+ resize=1.5
905
+ new_coords=1
906
+ iou_normalizer=0.05
907
+ iou_loss=ciou
908
+
models/face/lightnet-face-640x640.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de31ac46e9508d75efb4b6b96d8d85056681a1b16caca251354d150a86f4308
3
+ size 35988588
models/face/wider_face.data ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ classes = 1
2
+ train =
3
+ valid =
4
+ names = face/wider_face.names
5
+ backup =
models/face/wider_face.names ADDED
@@ -0,0 +1 @@
 
 
1
+ face
models/head_body-visible/lightnet-head_visiblebody-1024x768.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b6277c81131cffd17bae17f008f2d68078b0a68d4e304b906219191992658ac
3
+ size 35999376
models/head_body-visible/lightnet-head_visiblebody-640x640.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1b87bacac88362676240e0ca70eb6ff93adadc16a1086f5a071bb1e84b47b87
3
+ size 35999376
models/head_body/crowdhuman.data ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ classes = 2
2
+ train =
3
+ valid =
4
+ names = head_body/crowdhuman.names
5
+ backup =
models/head_body/crowdhuman.names ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ head
2
+ body
models/head_body/lightnet-head_body-1024x768.cfg ADDED
@@ -0,0 +1,909 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=256
3
+ subdivisions=16
4
+ width=1024
5
+ height=768
6
+ channels=3
7
+ momentum=0.9
8
+ decay=0.0005
9
+ angle=0
10
+ saturation = 1.5
11
+ exposure = 1.5
12
+ hue=.1
13
+
14
+ learning_rate=0.001
15
+ burn_in=50
16
+ max_batches = 2000
17
+ policy=steps
18
+
19
+ steps=100,400,800,1600
20
+ scales=.5,.5,.5,.5
21
+ gaussian_noise=1
22
+ flip=1
23
+
24
+ ##sparse=1 : 2:4 structured sparsity
25
+
26
+ [convolutional]
27
+ batch_normalize=1
28
+ filters=32
29
+ size=3
30
+ stride=2
31
+ pad=1
32
+ activation=relu
33
+
34
+ [convolutional]
35
+ #sparse=1
36
+ batch_normalize=1
37
+ filters=64
38
+ size=3
39
+ stride=2
40
+ pad=1
41
+ activation=relu
42
+
43
+ [convolutional]
44
+ #sparse=1
45
+ batch_normalize=1
46
+ filters=32
47
+ size=1
48
+ stride=1
49
+ pad=1
50
+ activation=relu
51
+
52
+ [route]
53
+ layers=-2
54
+
55
+ [convolutional]
56
+ #sparse=1
57
+ batch_normalize=1
58
+ filters=32
59
+ size=1
60
+ stride=1
61
+ pad=1
62
+ activation=relu
63
+
64
+ [convolutional]
65
+ #sparse=1
66
+ batch_normalize=1
67
+ filters=32
68
+ size=3
69
+ stride=1
70
+ pad=1
71
+ activation=relu
72
+
73
+ [convolutional]
74
+ #sparse=1
75
+ batch_normalize=1
76
+ filters=32
77
+ size=3
78
+ stride=1
79
+ pad=1
80
+ activation=relu
81
+
82
+ [convolutional]
83
+ #sparse=1
84
+ batch_normalize=1
85
+ filters=32
86
+ size=3
87
+ stride=1
88
+ pad=1
89
+ activation=relu
90
+
91
+ [convolutional]
92
+ #sparse=1
93
+ batch_normalize=1
94
+ filters=32
95
+ size=3
96
+ stride=1
97
+ pad=1
98
+ activation=relu
99
+
100
+ [route]
101
+ layers = -1,-3,-5,-7
102
+
103
+ [convolutional]
104
+ #sparse=1
105
+ batch_normalize=1
106
+ filters=64
107
+ size=1
108
+ stride=1
109
+ pad=1
110
+ activation=relu
111
+
112
+ [convolutional]
113
+ #sparse=1
114
+ batch_normalize=1
115
+ filters=64
116
+ size=3
117
+ stride=2
118
+ pad=1
119
+ activation=relu
120
+
121
+
122
+ [convolutional]
123
+ #sparse=1
124
+ batch_normalize=1
125
+ filters=64
126
+ size=1
127
+ stride=1
128
+ pad=1
129
+ activation=relu
130
+
131
+ [route]
132
+ layers=-2
133
+
134
+ [convolutional]
135
+ #sparse=1
136
+ batch_normalize=1
137
+ filters=64
138
+ size=1
139
+ stride=1
140
+ pad=1
141
+ activation=relu
142
+
143
+ [convolutional]
144
+ #sparse=1
145
+ batch_normalize=1
146
+ filters=64
147
+ size=3
148
+ stride=1
149
+ pad=1
150
+ activation=relu
151
+
152
+ [convolutional]
153
+ #sparse=1
154
+ batch_normalize=1
155
+ filters=64
156
+ size=3
157
+ stride=1
158
+ pad=1
159
+ activation=relu
160
+
161
+ [convolutional]
162
+ #sparse=1
163
+ batch_normalize=1
164
+ filters=64
165
+ size=3
166
+ stride=1
167
+ pad=1
168
+ activation=relu
169
+
170
+ [convolutional]
171
+ #sparse=1
172
+ batch_normalize=1
173
+ filters=64
174
+ size=3
175
+ stride=1
176
+ pad=1
177
+ activation=relu
178
+
179
+ [route]
180
+ layers = -1,-3,-5,-7
181
+
182
+ [convolutional]
183
+ #sparse=1
184
+ batch_normalize=1
185
+ filters=128
186
+ size=1
187
+ stride=1
188
+ pad=1
189
+ activation=relu
190
+
191
+ [convolutional]
192
+ #sparse=1
193
+ batch_normalize=1
194
+ filters=128
195
+ size=3
196
+ stride=2
197
+ pad=1
198
+ activation=relu
199
+
200
+ [convolutional]
201
+ #sparse=1
202
+ batch_normalize=1
203
+ filters=128
204
+ size=1
205
+ stride=1
206
+ pad=1
207
+ activation=relu
208
+
209
+ [route]
210
+ layers=-2
211
+
212
+ [convolutional]
213
+ #sparse=1
214
+ batch_normalize=1
215
+ filters=128
216
+ size=1
217
+ stride=1
218
+ pad=1
219
+ activation=relu
220
+
221
+ [convolutional]
222
+ #sparse=1
223
+ batch_normalize=1
224
+ filters=128
225
+ size=3
226
+ stride=1
227
+ pad=1
228
+ activation=relu
229
+
230
+ [convolutional]
231
+ #sparse=1
232
+ batch_normalize=1
233
+ filters=128
234
+ size=3
235
+ stride=1
236
+ pad=1
237
+ activation=relu
238
+
239
+ [convolutional]
240
+ #sparse=1
241
+ batch_normalize=1
242
+ filters=128
243
+ size=3
244
+ stride=1
245
+ pad=1
246
+ activation=relu
247
+
248
+ [convolutional]
249
+ #sparse=1
250
+ batch_normalize=1
251
+ filters=128
252
+ size=3
253
+ stride=1
254
+ pad=1
255
+ activation=relu
256
+
257
+ [route]
258
+ layers = -1,-3,-5,-7
259
+
260
+ [convolutional]
261
+ #sparse=1
262
+ batch_normalize=1
263
+ filters=256
264
+ size=1
265
+ stride=1
266
+ pad=1
267
+ activation=relu
268
+
269
+ [convolutional]
270
+ #sparse=1
271
+ batch_normalize=1
272
+ filters=256
273
+ size=3
274
+ stride=2
275
+ pad=1
276
+ activation=relu
277
+
278
+ [convolutional]
279
+ #sparse=1
280
+ batch_normalize=1
281
+ filters=256
282
+ size=1
283
+ stride=1
284
+ pad=1
285
+ activation=relu
286
+
287
+ [route]
288
+ layers=-2
289
+
290
+ [convolutional]
291
+ #sparse=1
292
+ batch_normalize=1
293
+ filters=256
294
+ size=1
295
+ stride=1
296
+ pad=1
297
+ activation=relu
298
+
299
+ [convolutional]
300
+ #sparse=1
301
+ batch_normalize=1
302
+ filters=256
303
+ size=3
304
+ stride=1
305
+ pad=1
306
+ activation=relu
307
+
308
+ [convolutional]
309
+ #sparse=1
310
+ batch_normalize=1
311
+ filters=256
312
+ size=3
313
+ stride=1
314
+ pad=1
315
+ activation=relu
316
+
317
+ [convolutional]
318
+ #sparse=1
319
+ batch_normalize=1
320
+ filters=256
321
+ size=3
322
+ stride=1
323
+ pad=1
324
+ activation=relu
325
+
326
+ [convolutional]
327
+ #sparse=1
328
+ batch_normalize=1
329
+ filters=256
330
+ size=3
331
+ stride=1
332
+ pad=1
333
+ activation=relu
334
+
335
+ [route]
336
+ layers = -1,-3,-5,-7
337
+
338
+ [convolutional]
339
+ #sparse=1
340
+ batch_normalize=1
341
+ filters=512
342
+ size=1
343
+ stride=1
344
+ pad=1
345
+ activation=relu
346
+
347
+
348
+ ##################################
349
+
350
+ ### ASPPCSP ###
351
+ [convolutional]
352
+ #sparse=1
353
+ batch_normalize=1
354
+ filters=256
355
+ size=1
356
+ stride=1
357
+ pad=1
358
+ activation=relu
359
+
360
+ [route]
361
+ layers = -2
362
+
363
+ [convolutional]
364
+ #sparse=1
365
+ batch_normalize=1
366
+ filters=256
367
+ size=1
368
+ stride=1
369
+ pad=1
370
+ activation=relu
371
+
372
+ ### ASPP ###
373
+ [convolutional]
374
+ #sparse=1
375
+ batch_normalize=1
376
+ filters=256
377
+ size=1
378
+ stride=1
379
+ pad=1
380
+ dilation=1
381
+ activation=relu
382
+
383
+ [route]
384
+ layers=-2
385
+
386
+ [convolutional]
387
+ #sparse=1
388
+ batch_normalize=1
389
+ filters=256
390
+ size=1
391
+ stride=1
392
+ pad=1
393
+ dilation=3
394
+ activation=relu
395
+
396
+ [route]
397
+ layers=-4
398
+
399
+ [convolutional]
400
+ #sparse=1
401
+ batch_normalize=1
402
+ filters=256
403
+ size=1
404
+ stride=1
405
+ pad=1
406
+ dilation=5
407
+ activation=relu
408
+
409
+ [route]
410
+ layers=-1,-3,-5,-6
411
+ ### End ASPP ###
412
+
413
+ [convolutional]
414
+ #sparse=1
415
+ batch_normalize=1
416
+ filters=256
417
+ size=1
418
+ stride=1
419
+ pad=1
420
+ activation=relu
421
+
422
+ [route]
423
+ layers = -10,-1
424
+
425
+ # 44
426
+ [convolutional]
427
+ #sparse=1
428
+ batch_normalize=1
429
+ filters=256
430
+ size=1
431
+ stride=1
432
+ pad=1
433
+ activation=relu
434
+ ### End ASPPCSP ###
435
+
436
+ [convolutional]
437
+ #sparse=1
438
+ batch_normalize=1
439
+ filters=128
440
+ size=1
441
+ stride=1
442
+ pad=1
443
+ activation=relu
444
+
445
+ [upsample]
446
+ stride=2
447
+
448
+ [route]
449
+ layers = 30
450
+
451
+ [convolutional]
452
+ #sparse=1
453
+ batch_normalize=1
454
+ filters=128
455
+ size=1
456
+ stride=1
457
+ pad=1
458
+ activation=relu
459
+
460
+ [route]
461
+ layers = -1,-3
462
+
463
+ [convolutional]
464
+ #sparse=1
465
+ batch_normalize=1
466
+ filters=64
467
+ size=1
468
+ stride=1
469
+ pad=1
470
+ activation=relu
471
+
472
+ [route]
473
+ layers=-2
474
+
475
+ [convolutional]
476
+ #sparse=1
477
+ batch_normalize=1
478
+ filters=64
479
+ size=1
480
+ stride=1
481
+ pad=1
482
+ activation=relu
483
+
484
+ [convolutional]
485
+ #sparse=1
486
+ batch_normalize=1
487
+ filters=64
488
+ size=3
489
+ stride=1
490
+ pad=1
491
+ activation=relu
492
+
493
+ [convolutional]
494
+ #sparse=1
495
+ batch_normalize=1
496
+ filters=64
497
+ size=3
498
+ stride=1
499
+ pad=1
500
+ activation=relu
501
+
502
+ [convolutional]
503
+ #sparse=1
504
+ batch_normalize=1
505
+ filters=64
506
+ size=3
507
+ stride=1
508
+ pad=1
509
+ activation=relu
510
+
511
+ [convolutional]
512
+ #sparse=1
513
+ batch_normalize=1
514
+ filters=64
515
+ size=3
516
+ stride=1
517
+ pad=1
518
+ activation=relu
519
+
520
+ [route]
521
+ layers = -1,-3,-5,-7
522
+
523
+
524
+ # 56
525
+ [convolutional]
526
+ #sparse=1
527
+ batch_normalize=1
528
+ filters=128
529
+ size=1
530
+ stride=1
531
+ pad=1
532
+ activation=relu
533
+
534
+ [convolutional]
535
+ #sparse=1
536
+ batch_normalize=1
537
+ filters=64
538
+ size=1
539
+ stride=1
540
+ pad=1
541
+ activation=relu
542
+
543
+ [upsample]
544
+ stride=2
545
+
546
+ [route]
547
+ layers = 20
548
+
549
+ [convolutional]
550
+ #sparse=1
551
+ batch_normalize=1
552
+ filters=64
553
+ size=1
554
+ stride=1
555
+ pad=1
556
+ activation=relu
557
+
558
+ [route]
559
+ layers = -1,-3
560
+
561
+ [convolutional]
562
+ #sparse=1
563
+ batch_normalize=1
564
+ filters=32
565
+ size=1
566
+ stride=1
567
+ pad=1
568
+ activation=relu
569
+
570
+ [route]
571
+ layers=-2
572
+
573
+ [convolutional]
574
+ #sparse=1
575
+ batch_normalize=1
576
+ filters=32
577
+ size=1
578
+ stride=1
579
+ pad=1
580
+ activation=relu
581
+
582
+ [convolutional]
583
+ #sparse=1
584
+ batch_normalize=1
585
+ filters=32
586
+ size=3
587
+ stride=1
588
+ pad=1
589
+ activation=relu
590
+
591
+ [convolutional]
592
+ #sparse=1
593
+ batch_normalize=1
594
+ filters=32
595
+ size=3
596
+ stride=1
597
+ pad=1
598
+ activation=relu
599
+
600
+ [convolutional]
601
+ #sparse=1
602
+ batch_normalize=1
603
+ filters=32
604
+ size=3
605
+ stride=1
606
+ pad=1
607
+ activation=relu
608
+
609
+ [convolutional]
610
+ #sparse=1
611
+ batch_normalize=1
612
+ filters=32
613
+ size=3
614
+ stride=1
615
+ pad=1
616
+ activation=relu
617
+
618
+ [route]
619
+ layers = -1,-3,-5,-7
620
+
621
+ [convolutional]
622
+ #sparse=1
623
+ batch_normalize=1
624
+ filters=64
625
+ size=1
626
+ stride=1
627
+ pad=1
628
+ activation=relu
629
+
630
+
631
+ [convolutional]
632
+ #sparse=1
633
+ batch_normalize=1
634
+ size=3
635
+ stride=2
636
+ pad=1
637
+ filters=128
638
+ activation=relu
639
+
640
+ [route]
641
+ layers = -1,67
642
+
643
+ [convolutional]
644
+ #sparse=1
645
+ batch_normalize=1
646
+ filters=64
647
+ size=1
648
+ stride=1
649
+ pad=1
650
+ activation=relu
651
+
652
+ [route]
653
+ layers=-2
654
+
655
+ [convolutional]
656
+ #sparse=1
657
+ batch_normalize=1
658
+ filters=64
659
+ size=1
660
+ stride=1
661
+ pad=1
662
+ activation=relu
663
+
664
+ [convolutional]
665
+ #sparse=1
666
+ batch_normalize=1
667
+ filters=64
668
+ size=3
669
+ stride=1
670
+ pad=1
671
+ activation=relu
672
+
673
+ [convolutional]
674
+ #sparse=1
675
+ batch_normalize=1
676
+ filters=64
677
+ size=3
678
+ stride=1
679
+ pad=1
680
+ activation=relu
681
+
682
+ [convolutional]
683
+ #sparse=1
684
+ batch_normalize=1
685
+ filters=64
686
+ size=3
687
+ stride=1
688
+ pad=1
689
+ activation=relu
690
+
691
+ [convolutional]
692
+ #sparse=1
693
+ batch_normalize=1
694
+ filters=64
695
+ size=3
696
+ stride=1
697
+ pad=1
698
+ activation=relu
699
+
700
+ [route]
701
+ layers = -1,-3,-5,-7
702
+
703
+ [convolutional]
704
+ #sparse=1
705
+ batch_normalize=1
706
+ filters=128
707
+ size=1
708
+ stride=1
709
+ pad=1
710
+ activation=relu
711
+
712
+ [convolutional]
713
+ #sparse=1
714
+ batch_normalize=1
715
+ size=3
716
+ stride=2
717
+ pad=1
718
+ filters=256
719
+ activation=relu
720
+
721
+ [route]
722
+ layers = -1,53
723
+
724
+ [convolutional]
725
+ #sparse=1
726
+ batch_normalize=1
727
+ filters=128
728
+ size=1
729
+ stride=1
730
+ pad=1
731
+ activation=relu
732
+
733
+ [route]
734
+ layers=-2
735
+
736
+ [convolutional]
737
+ #sparse=1
738
+ batch_normalize=1
739
+ filters=128
740
+ size=1
741
+ stride=1
742
+ pad=1
743
+ activation=relu
744
+
745
+ [convolutional]
746
+ #sparse=1
747
+ batch_normalize=1
748
+ filters=128
749
+ size=3
750
+ stride=1
751
+ pad=1
752
+ activation=relu
753
+
754
+ [convolutional]
755
+ #sparse=1
756
+ batch_normalize=1
757
+ filters=128
758
+ size=3
759
+ stride=1
760
+ pad=1
761
+ activation=relu
762
+
763
+ [convolutional]
764
+ #sparse=1
765
+ batch_normalize=1
766
+ filters=128
767
+ size=3
768
+ stride=1
769
+ pad=1
770
+ activation=relu
771
+
772
+ [convolutional]
773
+ #sparse=1
774
+ batch_normalize=1
775
+ filters=128
776
+ size=3
777
+ stride=1
778
+ pad=1
779
+ activation=relu
780
+
781
+ [route]
782
+ layers = -1,-3,-5,-7
783
+
784
+ [convolutional]
785
+ #sparse=1
786
+ batch_normalize=1
787
+ filters=256
788
+ size=1
789
+ stride=1
790
+ pad=1
791
+ activation=relu
792
+
793
+ #############################
794
+
795
+ # ============ End of Neck ============ #
796
+
797
+ # ============ Head ============ #
798
+
799
+
800
+ # P3
801
+ [route]
802
+ layers = 80
803
+
804
+ [convolutional]
805
+ #sparse=1
806
+ batch_normalize=1
807
+ size=3
808
+ stride=1
809
+ pad=1
810
+ filters=128
811
+ activation=relu
812
+
813
+ [convolutional]
814
+ ##sparse=1
815
+ size=1
816
+ stride=1
817
+ pad=1
818
+ filters=21
819
+ #activation=linear
820
+ activation=logistic
821
+
822
+ [yolo]
823
+ mask = 0,1,2
824
+ anchors = 8, 11, 20, 31, 34, 66, 64, 93, 54,184, 120,174, 97,334, 176,448, 344,564
825
+ classes=2
826
+ num=9
827
+ jitter=.3
828
+ scale_x_y = 2.0
829
+ ignore_thresh = .5
830
+ truth_thresh = 1
831
+ #random=1
832
+ resize=1.5
833
+ new_coords=1
834
+ iou_normalizer=0.05
835
+ # iou_loss=ciou
836
+
837
+ # P4
838
+ [route]
839
+ layers = 91
840
+
841
+ [convolutional]
842
+ #sparse=1
843
+ batch_normalize=1
844
+ size=3
845
+ stride=1
846
+ pad=1
847
+ filters=256
848
+ activation=relu
849
+
850
+ [convolutional]
851
+ ##sparse=1
852
+ size=1
853
+ stride=1
854
+ pad=1
855
+ filters=21
856
+ #activation=linear
857
+ activation=logistic
858
+
859
+ [yolo]
860
+ mask = 3,4,5
861
+ anchors = 8, 11, 20, 31, 34, 66, 64, 93, 54,184, 120,174, 97,334, 176,448, 344,564
862
+ classes=2
863
+ num=9
864
+ jitter=.3
865
+ scale_x_y = 2.0
866
+ ignore_thresh = .5
867
+ truth_thresh = 1
868
+ resize=1.5
869
+ new_coords=1
870
+ iou_normalizer=0.05
871
+ # iou_loss=ciou
872
+
873
+
874
+ # P5
875
+ [route]
876
+ layers = 102
877
+
878
+ [convolutional]
879
+ #sparse=1
880
+ batch_normalize=1
881
+ size=3
882
+ stride=1
883
+ pad=1
884
+ filters=512
885
+ activation=relu
886
+
887
+ [convolutional]
888
+ ##sparse=1
889
+ size=1
890
+ stride=1
891
+ pad=1
892
+ filters=21
893
+ #activation=linear
894
+ activation=logistic
895
+
896
+ [yolo]
897
+ mask = 6,7,8
898
+ anchors = 8, 11, 20, 31, 34, 66, 64, 93, 54,184, 120,174, 97,334, 176,448, 344,564
899
+ classes=2
900
+ num=9
901
+ jitter=.3
902
+ scale_x_y = 2.0
903
+ ignore_thresh = .7
904
+ truth_thresh = 1
905
+ resize=1.5
906
+ new_coords=1
907
+ iou_normalizer=0.05
908
+ iou_loss=ciou
909
+
models/head_body/lightnet-head_body-1024x768.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84755400efafae3aec449b9ed5104e7e90302adfcb9549f8d43becdac23e6cbf
3
+ size 35999376
models/head_body/lightnet-head_body-640x640.cfg ADDED
@@ -0,0 +1,909 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [net]
2
+ batch=64
3
+ subdivisions=4
4
+ width=640
5
+ height=640
6
+ channels=3
7
+ momentum=0.9
8
+ decay=0.0005
9
+ angle=0
10
+ saturation = 1.5
11
+ exposure = 1.5
12
+ hue=.1
13
+
14
+ learning_rate=0.001
15
+ burn_in=500
16
+ max_batches = 70000
17
+ policy=steps
18
+
19
+ steps=12000,24000,35000,50000
20
+ scales=.5,.5,.5,.5
21
+ gaussian_noise=1
22
+ flip=1
23
+
24
+ ##sparse=1 : 2:4 structured sparsity
25
+
26
+ [convolutional]
27
+ batch_normalize=1
28
+ filters=32
29
+ size=3
30
+ stride=2
31
+ pad=1
32
+ activation=relu
33
+
34
+ [convolutional]
35
+ #sparse=1
36
+ batch_normalize=1
37
+ filters=64
38
+ size=3
39
+ stride=2
40
+ pad=1
41
+ activation=relu
42
+
43
+ [convolutional]
44
+ #sparse=1
45
+ batch_normalize=1
46
+ filters=32
47
+ size=1
48
+ stride=1
49
+ pad=1
50
+ activation=relu
51
+
52
+ [route]
53
+ layers=-2
54
+
55
+ [convolutional]
56
+ #sparse=1
57
+ batch_normalize=1
58
+ filters=32
59
+ size=1
60
+ stride=1
61
+ pad=1
62
+ activation=relu
63
+
64
+ [convolutional]
65
+ #sparse=1
66
+ batch_normalize=1
67
+ filters=32
68
+ size=3
69
+ stride=1
70
+ pad=1
71
+ activation=relu
72
+
73
+ [convolutional]
74
+ #sparse=1
75
+ batch_normalize=1
76
+ filters=32
77
+ size=3
78
+ stride=1
79
+ pad=1
80
+ activation=relu
81
+
82
+ [convolutional]
83
+ #sparse=1
84
+ batch_normalize=1
85
+ filters=32
86
+ size=3
87
+ stride=1
88
+ pad=1
89
+ activation=relu
90
+
91
+ [convolutional]
92
+ #sparse=1
93
+ batch_normalize=1
94
+ filters=32
95
+ size=3
96
+ stride=1
97
+ pad=1
98
+ activation=relu
99
+
100
+ [route]
101
+ layers = -1,-3,-5,-7
102
+
103
+ [convolutional]
104
+ #sparse=1
105
+ batch_normalize=1
106
+ filters=64
107
+ size=1
108
+ stride=1
109
+ pad=1
110
+ activation=relu
111
+
112
+ [convolutional]
113
+ #sparse=1
114
+ batch_normalize=1
115
+ filters=64
116
+ size=3
117
+ stride=2
118
+ pad=1
119
+ activation=relu
120
+
121
+
122
+ [convolutional]
123
+ #sparse=1
124
+ batch_normalize=1
125
+ filters=64
126
+ size=1
127
+ stride=1
128
+ pad=1
129
+ activation=relu
130
+
131
+ [route]
132
+ layers=-2
133
+
134
+ [convolutional]
135
+ #sparse=1
136
+ batch_normalize=1
137
+ filters=64
138
+ size=1
139
+ stride=1
140
+ pad=1
141
+ activation=relu
142
+
143
+ [convolutional]
144
+ #sparse=1
145
+ batch_normalize=1
146
+ filters=64
147
+ size=3
148
+ stride=1
149
+ pad=1
150
+ activation=relu
151
+
152
+ [convolutional]
153
+ #sparse=1
154
+ batch_normalize=1
155
+ filters=64
156
+ size=3
157
+ stride=1
158
+ pad=1
159
+ activation=relu
160
+
161
+ [convolutional]
162
+ #sparse=1
163
+ batch_normalize=1
164
+ filters=64
165
+ size=3
166
+ stride=1
167
+ pad=1
168
+ activation=relu
169
+
170
+ [convolutional]
171
+ #sparse=1
172
+ batch_normalize=1
173
+ filters=64
174
+ size=3
175
+ stride=1
176
+ pad=1
177
+ activation=relu
178
+
179
+ [route]
180
+ layers = -1,-3,-5,-7
181
+
182
+ [convolutional]
183
+ #sparse=1
184
+ batch_normalize=1
185
+ filters=128
186
+ size=1
187
+ stride=1
188
+ pad=1
189
+ activation=relu
190
+
191
+ [convolutional]
192
+ #sparse=1
193
+ batch_normalize=1
194
+ filters=128
195
+ size=3
196
+ stride=2
197
+ pad=1
198
+ activation=relu
199
+
200
+ [convolutional]
201
+ #sparse=1
202
+ batch_normalize=1
203
+ filters=128
204
+ size=1
205
+ stride=1
206
+ pad=1
207
+ activation=relu
208
+
209
+ [route]
210
+ layers=-2
211
+
212
+ [convolutional]
213
+ #sparse=1
214
+ batch_normalize=1
215
+ filters=128
216
+ size=1
217
+ stride=1
218
+ pad=1
219
+ activation=relu
220
+
221
+ [convolutional]
222
+ #sparse=1
223
+ batch_normalize=1
224
+ filters=128
225
+ size=3
226
+ stride=1
227
+ pad=1
228
+ activation=relu
229
+
230
+ [convolutional]
231
+ #sparse=1
232
+ batch_normalize=1
233
+ filters=128
234
+ size=3
235
+ stride=1
236
+ pad=1
237
+ activation=relu
238
+
239
+ [convolutional]
240
+ #sparse=1
241
+ batch_normalize=1
242
+ filters=128
243
+ size=3
244
+ stride=1
245
+ pad=1
246
+ activation=relu
247
+
248
+ [convolutional]
249
+ #sparse=1
250
+ batch_normalize=1
251
+ filters=128
252
+ size=3
253
+ stride=1
254
+ pad=1
255
+ activation=relu
256
+
257
+ [route]
258
+ layers = -1,-3,-5,-7
259
+
260
+ [convolutional]
261
+ #sparse=1
262
+ batch_normalize=1
263
+ filters=256
264
+ size=1
265
+ stride=1
266
+ pad=1
267
+ activation=relu
268
+
269
+ [convolutional]
270
+ #sparse=1
271
+ batch_normalize=1
272
+ filters=256
273
+ size=3
274
+ stride=2
275
+ pad=1
276
+ activation=relu
277
+
278
+ [convolutional]
279
+ #sparse=1
280
+ batch_normalize=1
281
+ filters=256
282
+ size=1
283
+ stride=1
284
+ pad=1
285
+ activation=relu
286
+
287
+ [route]
288
+ layers=-2
289
+
290
+ [convolutional]
291
+ #sparse=1
292
+ batch_normalize=1
293
+ filters=256
294
+ size=1
295
+ stride=1
296
+ pad=1
297
+ activation=relu
298
+
299
+ [convolutional]
300
+ #sparse=1
301
+ batch_normalize=1
302
+ filters=256
303
+ size=3
304
+ stride=1
305
+ pad=1
306
+ activation=relu
307
+
308
+ [convolutional]
309
+ #sparse=1
310
+ batch_normalize=1
311
+ filters=256
312
+ size=3
313
+ stride=1
314
+ pad=1
315
+ activation=relu
316
+
317
+ [convolutional]
318
+ #sparse=1
319
+ batch_normalize=1
320
+ filters=256
321
+ size=3
322
+ stride=1
323
+ pad=1
324
+ activation=relu
325
+
326
+ [convolutional]
327
+ #sparse=1
328
+ batch_normalize=1
329
+ filters=256
330
+ size=3
331
+ stride=1
332
+ pad=1
333
+ activation=relu
334
+
335
+ [route]
336
+ layers = -1,-3,-5,-7
337
+
338
+ [convolutional]
339
+ #sparse=1
340
+ batch_normalize=1
341
+ filters=512
342
+ size=1
343
+ stride=1
344
+ pad=1
345
+ activation=relu
346
+
347
+
348
+ ##################################
349
+
350
+ ### ASPPCSP ###
351
+ [convolutional]
352
+ #sparse=1
353
+ batch_normalize=1
354
+ filters=256
355
+ size=1
356
+ stride=1
357
+ pad=1
358
+ activation=relu
359
+
360
+ [route]
361
+ layers = -2
362
+
363
+ [convolutional]
364
+ #sparse=1
365
+ batch_normalize=1
366
+ filters=256
367
+ size=1
368
+ stride=1
369
+ pad=1
370
+ activation=relu
371
+
372
+ ### ASPP ###
373
+ [convolutional]
374
+ #sparse=1
375
+ batch_normalize=1
376
+ filters=256
377
+ size=1
378
+ stride=1
379
+ pad=1
380
+ dilation=1
381
+ activation=relu
382
+
383
+ [route]
384
+ layers=-2
385
+
386
+ [convolutional]
387
+ #sparse=1
388
+ batch_normalize=1
389
+ filters=256
390
+ size=1
391
+ stride=1
392
+ pad=1
393
+ dilation=3
394
+ activation=relu
395
+
396
+ [route]
397
+ layers=-4
398
+
399
+ [convolutional]
400
+ #sparse=1
401
+ batch_normalize=1
402
+ filters=256
403
+ size=1
404
+ stride=1
405
+ pad=1
406
+ dilation=5
407
+ activation=relu
408
+
409
+ [route]
410
+ layers=-1,-3,-5,-6
411
+ ### End ASPP ###
412
+
413
+ [convolutional]
414
+ #sparse=1
415
+ batch_normalize=1
416
+ filters=256
417
+ size=1
418
+ stride=1
419
+ pad=1
420
+ activation=relu
421
+
422
+ [route]
423
+ layers = -10,-1
424
+
425
+ # 44
426
+ [convolutional]
427
+ #sparse=1
428
+ batch_normalize=1
429
+ filters=256
430
+ size=1
431
+ stride=1
432
+ pad=1
433
+ activation=relu
434
+ ### End ASPPCSP ###
435
+
436
+ [convolutional]
437
+ #sparse=1
438
+ batch_normalize=1
439
+ filters=128
440
+ size=1
441
+ stride=1
442
+ pad=1
443
+ activation=relu
444
+
445
+ [upsample]
446
+ stride=2
447
+
448
+ [route]
449
+ layers = 30
450
+
451
+ [convolutional]
452
+ #sparse=1
453
+ batch_normalize=1
454
+ filters=128
455
+ size=1
456
+ stride=1
457
+ pad=1
458
+ activation=relu
459
+
460
+ [route]
461
+ layers = -1,-3
462
+
463
+ [convolutional]
464
+ #sparse=1
465
+ batch_normalize=1
466
+ filters=64
467
+ size=1
468
+ stride=1
469
+ pad=1
470
+ activation=relu
471
+
472
+ [route]
473
+ layers=-2
474
+
475
+ [convolutional]
476
+ #sparse=1
477
+ batch_normalize=1
478
+ filters=64
479
+ size=1
480
+ stride=1
481
+ pad=1
482
+ activation=relu
483
+
484
+ [convolutional]
485
+ #sparse=1
486
+ batch_normalize=1
487
+ filters=64
488
+ size=3
489
+ stride=1
490
+ pad=1
491
+ activation=relu
492
+
493
+ [convolutional]
494
+ #sparse=1
495
+ batch_normalize=1
496
+ filters=64
497
+ size=3
498
+ stride=1
499
+ pad=1
500
+ activation=relu
501
+
502
+ [convolutional]
503
+ #sparse=1
504
+ batch_normalize=1
505
+ filters=64
506
+ size=3
507
+ stride=1
508
+ pad=1
509
+ activation=relu
510
+
511
+ [convolutional]
512
+ #sparse=1
513
+ batch_normalize=1
514
+ filters=64
515
+ size=3
516
+ stride=1
517
+ pad=1
518
+ activation=relu
519
+
520
+ [route]
521
+ layers = -1,-3,-5,-7
522
+
523
+
524
+ # 56
525
+ [convolutional]
526
+ #sparse=1
527
+ batch_normalize=1
528
+ filters=128
529
+ size=1
530
+ stride=1
531
+ pad=1
532
+ activation=relu
533
+
534
+ [convolutional]
535
+ #sparse=1
536
+ batch_normalize=1
537
+ filters=64
538
+ size=1
539
+ stride=1
540
+ pad=1
541
+ activation=relu
542
+
543
+ [upsample]
544
+ stride=2
545
+
546
+ [route]
547
+ layers = 20
548
+
549
+ [convolutional]
550
+ #sparse=1
551
+ batch_normalize=1
552
+ filters=64
553
+ size=1
554
+ stride=1
555
+ pad=1
556
+ activation=relu
557
+
558
+ [route]
559
+ layers = -1,-3
560
+
561
+ [convolutional]
562
+ #sparse=1
563
+ batch_normalize=1
564
+ filters=32
565
+ size=1
566
+ stride=1
567
+ pad=1
568
+ activation=relu
569
+
570
+ [route]
571
+ layers=-2
572
+
573
+ [convolutional]
574
+ #sparse=1
575
+ batch_normalize=1
576
+ filters=32
577
+ size=1
578
+ stride=1
579
+ pad=1
580
+ activation=relu
581
+
582
+ [convolutional]
583
+ #sparse=1
584
+ batch_normalize=1
585
+ filters=32
586
+ size=3
587
+ stride=1
588
+ pad=1
589
+ activation=relu
590
+
591
+ [convolutional]
592
+ #sparse=1
593
+ batch_normalize=1
594
+ filters=32
595
+ size=3
596
+ stride=1
597
+ pad=1
598
+ activation=relu
599
+
600
+ [convolutional]
601
+ #sparse=1
602
+ batch_normalize=1
603
+ filters=32
604
+ size=3
605
+ stride=1
606
+ pad=1
607
+ activation=relu
608
+
609
+ [convolutional]
610
+ #sparse=1
611
+ batch_normalize=1
612
+ filters=32
613
+ size=3
614
+ stride=1
615
+ pad=1
616
+ activation=relu
617
+
618
+ [route]
619
+ layers = -1,-3,-5,-7
620
+
621
+ [convolutional]
622
+ #sparse=1
623
+ batch_normalize=1
624
+ filters=64
625
+ size=1
626
+ stride=1
627
+ pad=1
628
+ activation=relu
629
+
630
+
631
+ [convolutional]
632
+ #sparse=1
633
+ batch_normalize=1
634
+ size=3
635
+ stride=2
636
+ pad=1
637
+ filters=128
638
+ activation=relu
639
+
640
+ [route]
641
+ layers = -1,67
642
+
643
+ [convolutional]
644
+ #sparse=1
645
+ batch_normalize=1
646
+ filters=64
647
+ size=1
648
+ stride=1
649
+ pad=1
650
+ activation=relu
651
+
652
+ [route]
653
+ layers=-2
654
+
655
+ [convolutional]
656
+ #sparse=1
657
+ batch_normalize=1
658
+ filters=64
659
+ size=1
660
+ stride=1
661
+ pad=1
662
+ activation=relu
663
+
664
+ [convolutional]
665
+ #sparse=1
666
+ batch_normalize=1
667
+ filters=64
668
+ size=3
669
+ stride=1
670
+ pad=1
671
+ activation=relu
672
+
673
+ [convolutional]
674
+ #sparse=1
675
+ batch_normalize=1
676
+ filters=64
677
+ size=3
678
+ stride=1
679
+ pad=1
680
+ activation=relu
681
+
682
+ [convolutional]
683
+ #sparse=1
684
+ batch_normalize=1
685
+ filters=64
686
+ size=3
687
+ stride=1
688
+ pad=1
689
+ activation=relu
690
+
691
+ [convolutional]
692
+ #sparse=1
693
+ batch_normalize=1
694
+ filters=64
695
+ size=3
696
+ stride=1
697
+ pad=1
698
+ activation=relu
699
+
700
+ [route]
701
+ layers = -1,-3,-5,-7
702
+
703
+ [convolutional]
704
+ #sparse=1
705
+ batch_normalize=1
706
+ filters=128
707
+ size=1
708
+ stride=1
709
+ pad=1
710
+ activation=relu
711
+
712
+ [convolutional]
713
+ #sparse=1
714
+ batch_normalize=1
715
+ size=3
716
+ stride=2
717
+ pad=1
718
+ filters=256
719
+ activation=relu
720
+
721
+ [route]
722
+ layers = -1,53
723
+
724
+ [convolutional]
725
+ #sparse=1
726
+ batch_normalize=1
727
+ filters=128
728
+ size=1
729
+ stride=1
730
+ pad=1
731
+ activation=relu
732
+
733
+ [route]
734
+ layers=-2
735
+
736
+ [convolutional]
737
+ #sparse=1
738
+ batch_normalize=1
739
+ filters=128
740
+ size=1
741
+ stride=1
742
+ pad=1
743
+ activation=relu
744
+
745
+ [convolutional]
746
+ #sparse=1
747
+ batch_normalize=1
748
+ filters=128
749
+ size=3
750
+ stride=1
751
+ pad=1
752
+ activation=relu
753
+
754
+ [convolutional]
755
+ #sparse=1
756
+ batch_normalize=1
757
+ filters=128
758
+ size=3
759
+ stride=1
760
+ pad=1
761
+ activation=relu
762
+
763
+ [convolutional]
764
+ #sparse=1
765
+ batch_normalize=1
766
+ filters=128
767
+ size=3
768
+ stride=1
769
+ pad=1
770
+ activation=relu
771
+
772
+ [convolutional]
773
+ #sparse=1
774
+ batch_normalize=1
775
+ filters=128
776
+ size=3
777
+ stride=1
778
+ pad=1
779
+ activation=relu
780
+
781
+ [route]
782
+ layers = -1,-3,-5,-7
783
+
784
+ [convolutional]
785
+ #sparse=1
786
+ batch_normalize=1
787
+ filters=256
788
+ size=1
789
+ stride=1
790
+ pad=1
791
+ activation=relu
792
+
793
+ #############################
794
+
795
+ # ============ End of Neck ============ #
796
+
797
+ # ============ Head ============ #
798
+
799
+
800
+ # P3
801
+ [route]
802
+ layers = 80
803
+
804
+ [convolutional]
805
+ #sparse=1
806
+ batch_normalize=1
807
+ size=3
808
+ stride=1
809
+ pad=1
810
+ filters=128
811
+ activation=relu
812
+
813
+ [convolutional]
814
+ ##sparse=1
815
+ size=1
816
+ stride=1
817
+ pad=1
818
+ filters=21
819
+ #activation=linear
820
+ activation=logistic
821
+
822
+ [yolo]
823
+ mask = 0,1,2
824
+ anchors = 5, 10, 13, 29, 23, 62, 32,139, 52, 92, 54,232, 94,270, 109,436, 225,477
825
+ classes=2
826
+ num=9
827
+ jitter=.3
828
+ scale_x_y = 2.0
829
+ ignore_thresh = .5
830
+ truth_thresh = 1
831
+ #random=1
832
+ resize=1.5
833
+ new_coords=1
834
+ iou_normalizer=0.05
835
+ # iou_loss=ciou
836
+
837
+ # P4
838
+ [route]
839
+ layers = 91
840
+
841
+ [convolutional]
842
+ #sparse=1
843
+ batch_normalize=1
844
+ size=3
845
+ stride=1
846
+ pad=1
847
+ filters=256
848
+ activation=relu
849
+
850
+ [convolutional]
851
+ ##sparse=1
852
+ size=1
853
+ stride=1
854
+ pad=1
855
+ filters=21
856
+ #activation=linear
857
+ activation=logistic
858
+
859
+ [yolo]
860
+ mask = 3,4,5
861
+ anchors = 5, 10, 13, 29, 23, 62, 32,139, 52, 92, 54,232, 94,270, 109,436, 225,477
862
+ classes=2
863
+ num=9
864
+ jitter=.3
865
+ scale_x_y = 2.0
866
+ ignore_thresh = .5
867
+ truth_thresh = 1
868
+ resize=1.5
869
+ new_coords=1
870
+ iou_normalizer=0.05
871
+ # iou_loss=ciou
872
+
873
+
874
+ # P5
875
+ [route]
876
+ layers = 102
877
+
878
+ [convolutional]
879
+ #sparse=1
880
+ batch_normalize=1
881
+ size=3
882
+ stride=1
883
+ pad=1
884
+ filters=512
885
+ activation=relu
886
+
887
+ [convolutional]
888
+ ##sparse=1
889
+ size=1
890
+ stride=1
891
+ pad=1
892
+ filters=21
893
+ #activation=linear
894
+ activation=logistic
895
+
896
+ [yolo]
897
+ mask = 6,7,8
898
+ anchors = 5, 10, 13, 29, 23, 62, 32,139, 52, 92, 54,232, 94,270, 109,436, 225,477
899
+ classes=2
900
+ num=9
901
+ jitter=.3
902
+ scale_x_y = 2.0
903
+ ignore_thresh = .7
904
+ truth_thresh = 1
905
+ resize=1.5
906
+ new_coords=1
907
+ iou_normalizer=0.05
908
+ iou_loss=ciou
909
+
models/head_body/lightnet-head_body-640x640.weights ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99947766f6f6f001811e7d4b3bd0e54ab073c30947df986c6e4daae32bd87d49
3
+ size 35999376
models/path.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "driving": {
3
+ "640x640": {
4
+ "cfg": "driving/lightnet-driving-640x640.cfg",
5
+ "weights": "driving/lightnet-driving-640x640.weights",
6
+ "data": "driving/bdd100k.data"
7
+ },
8
+ "1280x960": {
9
+ "cfg": "driving/lightnet-driving-1280x960.cfg",
10
+ "weights": "driving/lightnet-driving-1280x960.weights",
11
+ "data": "driving/bdd100k.data"
12
+ }
13
+ },
14
+ "face": {
15
+ "640x640": {
16
+ "cfg": "face/lightnet-face-640x640.cfg",
17
+ "weights": "face/lightnet-face-640x640.weights",
18
+ "data": "face/wider_face.data"
19
+ },
20
+ "1024x768": {
21
+ "cfg": "face/lightnet-face-1024x768.cfg",
22
+ "weights": "face/lightnet-face-1024x768.weights",
23
+ "data": "face/wider_face.data"
24
+ }
25
+ },
26
+ "head_body": {
27
+ "640x640": {
28
+ "cfg": "head_body/lightnet-head_body-640x640.cfg",
29
+ "weights": "head_body/lightnet-head_body-640x640.weights",
30
+ "data": "head_body/crowdhuman.data"
31
+ },
32
+ "1024x768": {
33
+ "cfg": "head_body/lightnet-head_body-1024x768.cfg",
34
+ "weights": "head_body/lightnet-head_body-1024x768.weights",
35
+ "data": "head_body/crowdhuman.data"
36
+ }
37
+ },
38
+ "head_body-visible": {
39
+ "640x640": {
40
+ "cfg": "head_body-visible/lightnet-head_visiblebody-640x640.weights",
41
+ "weights": "head_body/lightnet-head_body-640x640.weights",
42
+ "data": "head_body/crowdhuman.data"
43
+ },
44
+ "1024x768": {
45
+ "cfg": "head_body-visible/lightnet-head_visiblebody-1024x768.weights",
46
+ "weights": "head_body/lightnet-head_body-1024x768.weights",
47
+ "data": "head_body/crowdhuman.data"
48
+ }
49
+ }
50
+ }
yolo-lightnet DELETED
@@ -1 +0,0 @@
1
- Subproject commit 5886db6c8f20940ef9219a105272bc9f1c60c49e