mirror of https://github.com/AlexeyAB/darknet.git
parent
2baa7bde54
commit
548a0bc652
4 changed files with 568 additions and 5 deletions
@ -1,4 +0,0 @@ |
||||
darknet.exe classifier predict cfg/imagenet1k.data cfg/darknet19_448.cfg darknet19_448.weights |
||||
|
||||
|
||||
pause |
@ -0,0 +1,6 @@ |
||||
darknet.exe classifier predict cfg/imagenet1k.data cfg/resnet50.cfg resnet50.weights |
||||
|
||||
|
||||
pause |
||||
|
||||
REM Download weights for DenseNet201 and ResNet50 by this link: https://pjreddie.com/darknet/imagenet/ |
@ -0,0 +1,540 @@ |
||||
[net] |
||||
# Training |
||||
batch=64 |
||||
subdivisions=16 |
||||
|
||||
# Testing |
||||
#batch=1 |
||||
#subdivisions=1 |
||||
|
||||
height=416 |
||||
width=416 |
||||
#max_crop=448 |
||||
channels=3 |
||||
momentum=0.9 |
||||
decay=0.0005 |
||||
|
||||
learning_rate=0.0001 |
||||
max_batches = 45000 |
||||
policy=steps |
||||
steps=100,25000,35000 |
||||
scales=10,.1,.1 |
||||
|
||||
angle=7 |
||||
hue=.1 |
||||
saturation=.75 |
||||
exposure=.75 |
||||
aspect=.75 |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=7 |
||||
stride=2 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[maxpool] |
||||
size=2 |
||||
stride=2 |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=64 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=3 |
||||
stride=2 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=128 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
|
||||
# Conv 4 |
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=2 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=256 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=1024 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
#Conv 5 |
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=3 |
||||
stride=2 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=2048 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=2048 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=512 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
activation=leaky |
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
filters=2048 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
activation=linear |
||||
|
||||
[shortcut] |
||||
from=-4 |
||||
activation=leaky |
||||
|
||||
|
||||
|
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
filters=1024 |
||||
activation=leaky |
||||
|
||||
|
||||
[convolutional] |
||||
batch_normalize=1 |
||||
size=3 |
||||
stride=1 |
||||
pad=1 |
||||
filters=1024 |
||||
activation=leaky |
||||
|
||||
|
||||
|
||||
|
||||
[convolutional] |
||||
size=1 |
||||
stride=1 |
||||
pad=1 |
||||
filters=125 |
||||
activation=linear |
||||
|
||||
|
||||
[region] |
||||
anchors = 1.3221, 1.73145, 3.19275, 4.00944, 5.05587, 8.09892, 9.47112, 4.84053, 11.2364, 10.0071 |
||||
bias_match=1 |
||||
classes=20 |
||||
coords=4 |
||||
num=5 |
||||
softmax=1 |
||||
jitter=.3 |
||||
rescore=1 |
||||
|
||||
object_scale=5 |
||||
noobject_scale=1 |
||||
class_scale=1 |
||||
coord_scale=1 |
||||
|
||||
absolute=1 |
||||
thresh = .6 |
||||
random=0 |
Loading…
Reference in new issue