pooya-mohammadi / yolov5-gradcam

Visualizing Yolov5's layers using GradCam
MIT License
281 stars 47 forks source link

The output image is darker than the input image #2

Closed wilile26811249 closed 2 years ago

wilile26811249 commented 2 years ago

When I try to specify the img-size to 1280, the output image is darker than the input image.

pooya-mohammadi commented 2 years ago

@wilile26811249 Yeah, that's because of the saliency map. At points in which no activation occurred, it's a dark layer. Also, for better visualization, a normalization operation is performed, resulting in a darker image.

wilile26811249 commented 2 years ago

Thank you for your explain. I understand.