Should Grad-Cam attributions be greater than 1?

I'm using the captum library to calculate LayerGradCam.

layer_gc = LayerGradCam(model, model.layer4)
attr = layer_gc.attribute(x, class_idx, relu_attributions=True)

Some values in attr have values greater than 1. Is this supposed to be the case?

If it is, then is it valid to minmax normalize the attributions in a batch?

I'm using these attributions to calculate Dice loss using pixel maps where the max value is 1. So when the attributions are greater than 1, Dice loss becomes negative, which is not valid.

So,

Question 1: Are the attributions supposed to be going over 1 or am I doing something wrong?

Question 2: If they're supposed to go over 1, is it valid to normalize the them per batch?

Topic pytorch

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.