Hi, i am monitor the feature map and save it,the picture is so 'RED',is OK?


@yongcong1415 Hi,
Yes, this is ok.
You can change this line: https://github.com/AlexeyAB/darknet/blob/67f33ff5dc4bf489bcd9a0cd25e146ffddc92e18/src/network_kernels.cu#L77
to these 3 lines - to show black-white images instead of black-red:
memcpy(img.data, l.output + l.out_w*l.out_h*j, l.out_w*l.out_h * 1 * sizeof(float));
memcpy(img.data + l.out_w*l.out_h * 1, l.output + l.out_w*l.out_h*j, l.out_w*l.out_h * 1 * sizeof(float));
memcpy(img.data + l.out_w*l.out_h * 2, l.output + l.out_w*l.out_h*j, l.out_w*l.out_h * 1 * sizeof(float));
thanks very much,so good;
@yongcong1415 @AlexeyAB
1.Can I choose a folder for feature maps to save?
2.Can I choose the specific layer to see its feature map?
Thanks
Most helpful comment
@yongcong1415 Hi,
Yes, this is ok.
You can change this line: https://github.com/AlexeyAB/darknet/blob/67f33ff5dc4bf489bcd9a0cd25e146ffddc92e18/src/network_kernels.cu#L77
to these 3 lines - to show black-white images instead of black-red: