From 70d622ea54c55aa5489e71b769a92447a586c879 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 14 Jul 2014 05:07:51 +0000
Subject: [PATCH] Added batch to col2im, padding option

---
 src/parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/parser.c b/src/parser.c
index 5d6aa1c..b008882 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -48,6 +48,7 @@
     int n = option_find_int(options, "filters",1);
     int size = option_find_int(options, "size",1);
     int stride = option_find_int(options, "stride",1);
+    int pad = option_find_int(options, "pad",0);
     char *activation_s = option_find_str(options, "activation", "sigmoid");
     ACTIVATION activation = get_activation(activation_s);
     if(count == 0){
@@ -62,7 +63,7 @@
         c = m.c;
         if(h == 0) error("Layer before convolutional layer must output image.");
     }
-    convolutional_layer *layer = make_convolutional_layer(net.batch,h,w,c,n,size,stride, activation);
+    convolutional_layer *layer = make_convolutional_layer(net.batch,h,w,c,n,size,stride,pad,activation);
     char *data = option_find_str(options, "data", 0);
     if(data){
         char *curr = data;

--
Gitblit v1.10.0