Coder Social home page Coder Social logo

lam_demo's People

Contributors

jasongutu avatar

Stargazers

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

Watchers

 avatar  avatar

lam_demo's Issues

can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

I'm trying to run this line:
interpolated_grad_numpy, result_numpy, interpolated_numpy = Path_gradient(tensor_lr.numpy(), model, attr_objective, gaus_blur_path_func, cuda=True)

and I"m getting:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
I tied to change the 'tensor_lr.numpy()' to 'tensor_lr.cpu().numpy()' or 'tensor_lr.detach().cpu().numpy()' and it's still the same.
I would like to get some help please.

how can I use LAM code in x2 scale model

Hello. Your paper is very interesting, so I want to apply it to my experiment. I was going to experiment with the x2 super-resolution model, but I'm not sure if I did it right. How should I change LAM code to experiment with the x2 super-resolution model? I changed the zoomin param, scale param, factor param but I not sure about it.

General_query

Sir, please can you let me know, what steps I have to follow for getting the attribution maps for my super-resolved results.
I am thinking that the code, that you have provided on Google Colab , it takes state of the art pre-trained models (rcan,edsr), what if I want to check on my model's output.

Sir please help me.

colab

Hello author, I like your LAM work very much. If you have time, can you update colab. And I would like to ask about how I need to modify my own SR model for testing, thank you very much, and I am very sorry if I bother you

Error

I am following the step-by-step reasoning in the Colab page you provided and I get the following error when Calculate the Local Attribution Maps.
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Jupyter notebook version of Colab Demo

Hello, as a student from mainland china, I am not able to reach the Google Colab Demo, would any of you be so kind to share the jupyter notebook version of the Colab Demo on the github? Thank you.

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.