From 5e448c00f32e80e13eead72318047ce8368aac9a Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 05 Mar 2018 16:59:29 +0000
Subject: [PATCH] Added Focal loss. Use focal_loss=1 in the [region] layer in your cfg-file. alpha = 0.5, gamma = 2

---
 src/maxpool_layer.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/maxpool_layer.h b/src/maxpool_layer.h
index 4456863..ce56dd8 100644
--- a/src/maxpool_layer.h
+++ b/src/maxpool_layer.h
@@ -2,15 +2,15 @@
 #define MAXPOOL_LAYER_H
 
 #include "image.h"
-#include "params.h"
 #include "cuda.h"
 #include "layer.h"
+#include "network.h"
 
 typedef layer maxpool_layer;
 
 image get_maxpool_image(maxpool_layer l);
-maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride);
-void resize_maxpool_layer(maxpool_layer *l, int h, int w);
+maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride, int padding);
+void resize_maxpool_layer(maxpool_layer *l, int w, int h);
 void forward_maxpool_layer(const maxpool_layer l, network_state state);
 void backward_maxpool_layer(const maxpool_layer l, network_state state);
 

--
Gitblit v1.10.0