GithubHelp home page GithubHelp logo

Comments (4)

yizt avatar yizt commented on June 13, 2024

from grad-cam.pytorch.

AhaLims avatar AhaLims commented on June 13, 2024

不好意思

是的,为什么会小于零?归一化后最小值应该是零。要可视化需要做归一化 | | 易作天 | | 邮箱:[email protected] | 签名由 网易邮箱大师 定制 在2020年05月14日 18:22,Moxin Lin 写道: 关于Grad CAM和Grad CAM++中您的代码 # 数值归一化 cam -= np.min(cam) cam /= np.max(cam) 这里是做最大最小归一化吗?但是这里与最大最小归一化的公式不同,做完这一步后cam有部分值小于0,而且在Grad-cam与Grad-cam++的论文中均没有看到关于数值归一化的内容。这一点困扰了我很久,能麻烦您为我答疑解惑吗?非常感谢 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

不好意思我讲错了,不是小于0,是会出现大于1的问题,比如说[1,3,4,-7]就会变成[2, 2.5, 2.75, 0]

如果是最大最小归一化,应该是这个公式
image
那您的代码中对应的应该是这样的代码
#数值归一化 cam -= np.min(cam) cam /= np.max(cam) - np.min(cam)
是这样吗

from grad-cam.pytorch.

yizt avatar yizt commented on June 13, 2024

减完最小值后,再求最大值,最大值也发生变化了,不是之前的最大值了

from grad-cam.pytorch.

AhaLims avatar AhaLims commented on June 13, 2024

减完最小值后,再求最大值,最大值也发生变化了,不是之前的最大值了

噢噢噢 是我下意识以为这两句话是同步进行的。明白了 谢谢您!

from grad-cam.pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.