From f199fd3b6464e644566d76676c0b5f1824d26c4e Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 17 Apr 2015 19:32:54 +0000
Subject: [PATCH] per image randomness in crop layer
---
src/parser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/parser.c b/src/parser.c
index 08e0ea1..ca60ef7 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -187,6 +187,8 @@
int crop_width = option_find_int(options, "crop_width",1);
int flip = option_find_int(options, "flip",0);
float angle = option_find_float(options, "angle",0);
+ float saturation = option_find_float(options, "saturation",1);
+ float exposure = option_find_float(options, "exposure",1);
int batch,h,w,c;
h = params.h;
@@ -195,7 +197,7 @@
batch=params.batch;
if(!(h && w && c)) error("Layer before crop layer must output image.");
- crop_layer *layer = make_crop_layer(batch,h,w,c,crop_height,crop_width,flip, angle);
+ crop_layer *layer = make_crop_layer(batch,h,w,c,crop_height,crop_width,flip, angle, saturation, exposure);
option_unused(options);
return layer;
}
--
Gitblit v1.10.0