2014-07-14 09:07:51 +04:00
|
|
|
#ifndef DETECTION_LAYER_H
|
|
|
|
#define DETECTION_LAYER_H
|
|
|
|
|
2015-03-12 08:20:15 +03:00
|
|
|
#include "params.h"
|
2015-05-11 23:46:49 +03:00
|
|
|
#include "layer.h"
|
2015-03-12 08:20:15 +03:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
typedef layer detection_layer;
|
2014-07-14 09:07:51 +04:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
detection_layer make_detection_layer(int batch, int inputs, int classes, int coords, int rescore, int background, int nuisance);
|
|
|
|
void forward_detection_layer(const detection_layer l, network_state state);
|
|
|
|
void backward_detection_layer(const detection_layer l, network_state state);
|
|
|
|
int get_detection_layer_output_size(detection_layer l);
|
|
|
|
int get_detection_layer_locations(detection_layer l);
|
2015-03-05 01:56:38 +03:00
|
|
|
|
|
|
|
#ifdef GPU
|
2015-05-11 23:46:49 +03:00
|
|
|
void forward_detection_layer_gpu(const detection_layer l, network_state state);
|
|
|
|
void backward_detection_layer_gpu(detection_layer l, network_state state);
|
2015-03-05 01:56:38 +03:00
|
|
|
#endif
|
2014-07-14 09:07:51 +04:00
|
|
|
|
|
|
|
#endif
|