From dcb000b553d051429a49c8729dc5b1af632e8532 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 12 Mar 2015 05:20:15 +0000
Subject: [PATCH] refactoring and added DARK ZONE
---
src/detection_layer.h | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/detection_layer.h b/src/detection_layer.h
index e7e9e20..69a83a7 100644
--- a/src/detection_layer.h
+++ b/src/detection_layer.h
@@ -1,6 +1,8 @@
#ifndef DETECTION_LAYER_H
#define DETECTION_LAYER_H
+#include "params.h"
+
typedef struct {
int batch;
int inputs;
@@ -16,13 +18,13 @@
} detection_layer;
detection_layer *make_detection_layer(int batch, int inputs, int classes, int coords, int rescore);
-void forward_detection_layer(const detection_layer layer, float *in, float *truth);
-void backward_detection_layer(const detection_layer layer, float *in, float *delta);
+void forward_detection_layer(const detection_layer layer, network_state state);
+void backward_detection_layer(const detection_layer layer, network_state state);
int get_detection_layer_output_size(detection_layer layer);
#ifdef GPU
-void forward_detection_layer_gpu(const detection_layer layer, float *in, float *truth);
-void backward_detection_layer_gpu(detection_layer layer, float *in, float *delta);
+void forward_detection_layer_gpu(const detection_layer layer, network_state state);
+void backward_detection_layer_gpu(detection_layer layer, network_state state);
#endif
#endif
--
Gitblit v1.10.0