Giter Site home page Giter Site logo

igos_pp's People

Contributors

khorrams avatar mingqij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

igos_pp's Issues

Error: 'function' object has no attribute 'up'

Trying to use IGOS for CIFAR10 data set.

IGOS(network, sample.reshape(1,3,32,32).cuda().detach(), baseline.detach(), torch.Tensor([clss]), size = 32)

got this error message:

     63     :return:
     64     """
---> 65     return upscale.up(masks).expand((-1,1,upscale.out_size,upscale.out_size))  # TODO
     66 
     67 

AttributeError: 'function' object has no attribute 'up'

any idea how to fix that?

[code error] unsupported operation: some elements of the input tensor and the written-to tensor refer to a single memory location. Please clone() the tensor before performing the operation.

发生异常: RuntimeError
unsupported operation: some elements of the input tensor and the written-to tensor refer to a single memory location. Please clone() the tensor before performing the operation.
File "/home/lab/project/igos/heatmap-feature-mining/methods_helper.py", line 167, in line_search
indices[indices] = losses > base_losses[indices] + alphas[indices] * t[indices]
File "/home/lab/project/igos/heatmap-feature-mining/methods.py", line 89, in IGOS
alphas = line_search(masks, total_grads, loss_function, alpha)
File "/home/lab/project/igos/heatmap-feature-mining/main.py", line 51, in gen_explanations
masks = method(
File "/home/lab/project/igos/heatmap-feature-mining/main.py", line 142, in
gen_explanations(model, data_loader, args)

image

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.