Comments (4)
from grad-cam.pytorch.
不好意思
是的,为什么会小于零?归一化后最小值应该是零。要可视化需要做归一化 | | 易作天 | | 邮箱:[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]
如果是最大最小归一化,应该是这个公式
那您的代码中对应的应该是这样的代码
#数值归一化 cam -= np.min(cam) cam /= np.max(cam) - np.min(cam)
是这样吗
from grad-cam.pytorch.
减完最小值后,再求最大值,最大值也发生变化了,不是之前的最大值了
from grad-cam.pytorch.
减完最小值后,再求最大值,最大值也发生变化了,不是之前的最大值了
噢噢噢 是我下意识以为这两句话是同步进行的。明白了 谢谢您!
from grad-cam.pytorch.
Related Issues (20)
- centernet如何生成gradcam图?
- Hi, Could you give some hints for transfer your great works into YOLOv3?
- 移植您的方法到YOLOv3遇到点问题,请您指点一二 HOT 2
- 在自定义的数据集上提取到的热图不稳定,应该怎样finetune
- Grad-CAM for Faster-RCNN with config file faster_rcnn_X_101_32x8d_FPN_3x.yaml HOT 4
- 强化学习使用GradCAM HOT 3
- Fasterrcnn+fpn 可以用吗 HOT 1
- 如何将faster_rcnn的Grad-CAM映射到整张图像? HOT 7
- 你好,请问为什么基于frcnn的cam值这么低 HOT 1
- 全图cam HOT 1
- 请问怎么在yolov2中实现呢?
- 不是官方的预训练模型该怎么办呢
- 批量处理图像时的问题 HOT 5
- gradient = self.gradient[proposal_idx].cpu().data.numpy() HOT 2
- 你好yolo中该如何使用
- 你好 请问如何在分类项目里面用您的cam
- 关于gradcam在异常检测场景的应用问题
- Question about "gradient" HOT 1
- cam如何对孪生网络的语义分割网络使用呢?
- 如何分别可视化目标检中分类任务和定位任务的cam
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grad-cam.pytorch.