From 989ab8c38a02fa7ea9c25108151736c62e81c972 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 24 Apr 2015 17:27:50 +0000
Subject: [PATCH] IOU loss function
---
src/detection_layer.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/detection_layer.h b/src/detection_layer.h
index 69a83a7..0aa5f66 100644
--- a/src/detection_layer.h
+++ b/src/detection_layer.h
@@ -8,7 +8,11 @@
int inputs;
int classes;
int coords;
+ int background;
int rescore;
+ int nuisance;
+ int does_cost;
+ float *cost;
float *output;
float *delta;
#ifdef GPU
@@ -17,10 +21,11 @@
#endif
} detection_layer;
-detection_layer *make_detection_layer(int batch, int inputs, int classes, int coords, int rescore);
+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 layer, network_state state);
void backward_detection_layer(const detection_layer layer, network_state state);
int get_detection_layer_output_size(detection_layer layer);
+int get_detection_layer_locations(detection_layer layer);
#ifdef GPU
void forward_detection_layer_gpu(const detection_layer layer, network_state state);
--
Gitblit v1.10.0