nochange option in crop

This commit is contained in:
Joseph Redmon
2015-07-13 23:25:08 -07:00
parent 8561e49b5a
commit a47874a7e8
5 changed files with 14 additions and 2 deletions

View File

@ -196,7 +196,10 @@ crop_layer parse_crop(list *options, size_params params)
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;
}