pytorch-grad-cam icon indicating copy to clipboard operation
pytorch-grad-cam copied to clipboard

eigen cam generate wrong results

Open yimingqian opened this issue 2 years ago • 2 comments

The Eigen cam used the SVD from NumPy. Depending on the NumPy optimizer, the sign of eigenvectors could be negative. It will lead the algorithm to output the non-attention region instead of the attention region. I found this issue in MKL.

yimingqian avatar Aug 23 '22 06:08 yimingqian

Did you fix it yourself?

SOLVED: I just use SciPy SVD to fix it

image

@jacobgil Could you update get_2d_projection function? NumPy SVD to SciPy SVD?

minsuk-sung avatar May 02 '23 07:05 minsuk-sung

Did you fix it yourself?

SOLVED: I just use SciPy SVD to fix it

image

@jacobgil Could you update get_2d_projection function? NumPy SVD to SciPy SVD?

Hello, I use scipy, but the result seems same to numpy, which part of the code has been changed?

Gaotianhong avatar Dec 21 '23 10:12 Gaotianhong