GithubHelp home page GithubHelp logo

Comments (5)

ddshan avatar ddshan commented on June 13, 2024 1

I solved my problem. Mine is caused by the layer_name. In my model, I use the X101_FPN model from detectron2 (https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml). The original code of this repo uses the last conv2d feature layer to compute CAM. But the last cov2d layer of X101_FPN is in the RPN module. So I modified the code to use the last conv2d feature layer instead.
image

from grad-cam.pytorch.

ddshan avatar ddshan commented on June 13, 2024

I have the same problem. This happens even using
image = torch.as_tensor(image.astype("float32").transpose(2, 0, 1)).requires_grad_(True)
Want to know how to solve this.

from grad-cam.pytorch.

Fly-dream12 avatar Fly-dream12 commented on June 13, 2024

What codes have you modified? I can not open the image, can you list them? thanks @ddshan

from grad-cam.pytorch.

YuhuiMa avatar YuhuiMa commented on June 13, 2024

I solved my problem. Mine is caused by the layer_name. In my model, I use the X101_FPN model from detectron2 (https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml). The original code of this repo uses the last conv2d feature layer to compute CAM. But the last cov2d layer of X101_FPN is in the RPN module. So I modified the code to use the last conv2d feature layer instead. image

I still have not solved the problem by modifying the code like this. I don't know what else could cause this error.

from grad-cam.pytorch.

Zhaowss avatar Zhaowss 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.