In the process of attention map calculation, why should all channel be added with 1 and divided with 2?Are these operation desinged to norm the value of pixel to [0,1]?Thanks for any help
r,g,b = input_img[0]+1, input_img[1]+1, input_img[2]+1 A_gray = 1. - (0.299*r+0.587*g+0.114*b)/2.
In the process of attention map calculation, why should all channel be added with 1 and divided with 2?Are these operation desinged to norm the value of pixel to [0,1]?Thanks for any help
r,g,b = input_img[0]+1, input_img[1]+1, input_img[2]+1 A_gray = 1. - (0.299*r+0.587*g+0.114*b)/2.