Giter Site home page Giter Site logo

pytorch-lrp's Issues

RuntimeError: shape '[1, 2048, 10, 10]' is invalid for input of size 2048

I'm trying to analyze FaceForensics detector XceptionNet with your LRP implementation, but I get stuck when trying to analyze the first Conv2d layer (the last conv in the network) in the backpass. I'm getting this error message when trying to reshape relevance_in in method conv_nd_inverse (file: inverter_util.py):

relevance_in = relevance_in.view(m.out_shape)
RuntimeError: shape '[1, 2048, 10, 10]' is invalid for input of size 2048

So relevance_in has size torch.Size([1, 2048]) and m.out_shape is [1, 2048, 10, 10]. Why am I getting this error?

NameError: name 'INSERT' is not defined

When I tried to run this code in colab notebook , it occured the problem as "NameError: name 'INSERT' is not defined" during the process of importing setting.py. I wonder the reason behind it because I couldn't find corresponding useful information on the Internet. Thanks.

Question inverter_util.py

In compute_propagated_relevance function,

Do you only support max_pooling, not avg_pool or adaptive_avg_pooling??

Question about unet with upsample or ConvTranspose2d layer support

I want to use LRP to explain the semantic segmentation task using Unet model (Pytorch). I tested the LRP in captum but not support nn.Upsample and nn.ConvTranspose2d. I would like to know if the semantic segmentation model like Unet can be supported, and if not, how should it be implemented? Any help would be appreciated!

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.