Darknet: this layer0 feature map look like OK?TKS!

Created on 28 Sep 2018  路  3Comments  路  Source: AlexeyAB/darknet

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

image

image

Solved

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:

                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));

All 3 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zihaozhang9 picture zihaozhang9  路  3Comments

jetsonnano2020 picture jetsonnano2020  路  3Comments

rezaabdullah picture rezaabdullah  路  3Comments

siddharth2395 picture siddharth2395  路  3Comments

Yumin-Sun-00 picture Yumin-Sun-00  路  3Comments