From a47874a7e8ee2f0b22b59132e8e807468233dff0 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 14 Jul 2015 06:25:08 +0000
Subject: [PATCH] nochange option in crop

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

diff --git a/src/parser.c b/src/parser.c
index 893111e..9670715 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -196,7 +196,10 @@
     batch=params.batch;
     if(!(h && w && c)) error("Layer before crop layer must output image.");
 
+    int noadjust = option_find_int_quiet(options, "noadjust",0);
+
     crop_layer l = make_crop_layer(batch,h,w,c,crop_height,crop_width,flip, angle, saturation, exposure);
+    l.noadjust = noadjust;
     return l;
 }
 

--
Gitblit v1.10.0