Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added testdata/dnn/dog416.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions testdata/dnn/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ def download(self):
url='https://storage.cmusatyalab.org/openface-models/nn4.small2.v1.t7',
sha='ac8161a4376fb5a79ceec55d85bbb57ef81da9fe',
filename='openface_nn4.small2.v1.t7'),
Model(
name='YoloV2voc', # https://pjreddie.com/darknet/yolo/
url='https://pjreddie.com/media/files/yolo-voc.weights',
sha='1cc1a7f8ad12d563d85b76e9de025dc28ac397bb',
filename='yolo-voc.weights'),
Model(
name='TinyYoloV2voc', # https://pjreddie.com/darknet/yolo/
url='https://pjreddie.com/media/files/tiny-yolo-voc.weights',
sha='24b4bd049fc4fa5f5e95f684a8967e65c625dff9',
filename='tiny-yolo-voc.weights'),
]

# Note: models will be downloaded to current working directory
Expand Down
14 changes: 14 additions & 0 deletions testdata/dnn/layers/region.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[net]
height=13
width=13
channels=125

[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
Binary file added testdata/dnn/layers/region.input.npy
Binary file not shown.
Binary file added testdata/dnn/layers/region.npy
Binary file not shown.
7 changes: 7 additions & 0 deletions testdata/dnn/layers/reorg.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[net]
height=26
width=26
channels=64

[reorg]
stride=2
Binary file added testdata/dnn/layers/reorg.input.npy
Binary file not shown.
Binary file added testdata/dnn/layers/reorg.npy
Binary file not shown.
134 changes: 134 additions & 0 deletions testdata/dnn/tiny-yolo-voc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
[net]
batch=64
subdivisions=8
width=416
height=416
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1

learning_rate=0.001
max_batches = 40200
policy=steps
steps=-1,100,20000,30000
scales=.1,10,.1,.1

[convolutional]
batch_normalize=1
filters=16
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=256
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=512
size=3
stride=1
pad=1
activation=leaky

[maxpool]
size=2
stride=1

[convolutional]
batch_normalize=1
filters=1024
size=3
stride=1
pad=1
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.08,1.19, 3.42,4.41, 6.63,11.38, 9.42,5.11, 16.62,10.52
bias_match=1
classes=20
coords=4
num=5
softmax=1
jitter=.2
rescore=1

object_scale=5
noobject_scale=1
class_scale=1
coord_scale=1

absolute=1
thresh = .6
random=1
Loading