Better VOC handling and resizing

This commit is contained in:
Joseph Redmon
2014-03-12 21:57:34 -07:00
parent 15e86996d6
commit 2ea63c0e99
21 changed files with 288 additions and 173 deletions

View File

@ -4,6 +4,7 @@
#include "image.h"
typedef struct {
int batch;
int h,w,c;
int stride;
float *delta;
@ -11,7 +12,8 @@ typedef struct {
} maxpool_layer;
image get_maxpool_image(maxpool_layer layer);
maxpool_layer *make_maxpool_layer(int h, int w, int c, int stride);
maxpool_layer *make_maxpool_layer(int batch, int h, int w, int c, int stride);
void resize_maxpool_layer(maxpool_layer *layer, int h, int w, int c);
void forward_maxpool_layer(const maxpool_layer layer, float *in);
void backward_maxpool_layer(const maxpool_layer layer, float *in, float *delta);