Added spatial Yolo v3 yolov3-spp.cfg

This commit is contained in:
AlexeyAB
2018-08-03 14:35:03 +03:00
parent 6682f0b989
commit b8e6e80c6d
6 changed files with 1658 additions and 14 deletions

View File

@ -27,8 +27,8 @@ maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int s
l.w = w;
l.c = c;
l.pad = padding;
l.out_w = (w + 2*padding)/stride;
l.out_h = (h + 2*padding)/stride;
l.out_w = (w + 2 * padding - size) / stride + 1;
l.out_h = (h + 2 * padding - size) / stride + 1;
l.out_c = c;
l.outputs = l.out_h * l.out_w * l.out_c;
l.inputs = h*w*c;
@ -58,8 +58,8 @@ void resize_maxpool_layer(maxpool_layer *l, int w, int h)
l->w = w;
l->inputs = h*w*l->c;
l->out_w = (w + 2*l->pad)/l->stride;
l->out_h = (h + 2*l->pad)/l->stride;
l->out_w = (w + 2 * l->pad - l->size) / l->stride + 1;
l->out_h = (h + 2 * l->pad - l->size) / l->stride + 1;
l->outputs = l->out_w * l->out_h * l->c;
int output_size = l->outputs * l->batch;