GithubHelp home page GithubHelp logo

Comments (6)

yizt avatar yizt commented on June 3, 2024

@ChangGuangyao 您好,图像复原不熟悉,grad-cam本质是梯度的注意力,整张图也可以做反向传播

from grad-cam.pytorch.

ChangGuangyao avatar ChangGuangyao commented on June 3, 2024

@ChangGuangyao您好,图像复原不熟悉,grad-cam本质是渐变的关注,整张图也可以做反向传播

反向传播不应该是一个值吗 二维的矩阵好像没法调用.backward()方法吧

from grad-cam.pytorch.

yizt avatar yizt commented on June 3, 2024

@ChangGuangyao 矩阵一样的可以反向传播的;例子如下:

x=torch.randn(3,3)
x.requires_grad_(True)
y=x*x
y.backward(torch.ones(3,3))
x.grad

from grad-cam.pytorch.

ChangGuangyao avatar ChangGuangyao commented on June 3, 2024

@ChangGuangyao 矩阵一样的可以反向传播的;例子如下:

x=torch.randn(3,3)
x.requires_grad_(True)
y=x*x
y.backward(torch.ones(3,3))
x.grad

谢谢大佬

from grad-cam.pytorch.

darkmingy avatar darkmingy commented on June 3, 2024

您好,我也是图像超分的方向,不知道您做出用热力图做出结果了吗?我尝试用grad-cam作图,但结果远不如分类和检测的展示效果好。不知道您的损失函数放的是什么呢?

from grad-cam.pytorch.

lander1003 avatar lander1003 commented on June 3, 2024

您好,我也是图像超分的方向,不知道您做出用热力图做出结果了吗?我尝试用grad-cam作图,但结果远不如分类和检测的展示效果好。不知道您的损失函数放的是什么呢?

您好,我目前也是用grad-cam做图像复原相关的grad-cam图,效果也是非常不好,请问你目前解决了吗

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.