mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
MERRY CHRISTMAS I BROKE ALL YOUR DETECTION THINGS
This commit is contained in:
@ -83,6 +83,10 @@ void optimize_picture(network *net, image orig, int max_layer, float scale, floa
|
||||
*/
|
||||
|
||||
//rate = rate / abs_mean(out.data, out.w*out.h*out.c);
|
||||
image gray = make_image(out.w, out.h, out.c);
|
||||
fill_image(gray, .5);
|
||||
axpy_cpu(orig.w*orig.h*orig.c, -1, orig.data, 1, gray.data, 1);
|
||||
axpy_cpu(orig.w*orig.h*orig.c, .1, gray.data, 1, out.data, 1);
|
||||
|
||||
if(norm) normalize_array(out.data, out.w*out.h*out.c);
|
||||
axpy_cpu(orig.w*orig.h*orig.c, rate, out.data, 1, orig.data, 1);
|
||||
|
Reference in New Issue
Block a user