From 4f50e29365c8b8fd3aa9b67167701c1ada1e373f Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 09 Apr 2015 22:18:54 +0000
Subject: [PATCH] big change to images

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

diff --git a/src/crop_layer.c b/src/crop_layer.c
index cf1383e..819b754 100644
--- a/src/crop_layer.c
+++ b/src/crop_layer.c
@@ -7,7 +7,7 @@
     int h = layer.crop_height;
     int w = layer.crop_width;
     int c = layer.c;
-    return float_to_image(h,w,c,layer.output);
+    return float_to_image(w,h,c,layer.output);
 }
 
 crop_layer *make_crop_layer(int batch, int h, int w, int c, int crop_height, int crop_width, int flip)

--
Gitblit v1.10.0