Git Product home page Git Product logo

Comments (7)

josepdecid avatar josepdecid commented on May 18, 2024 2

It should be fixed now, once pull request #66 is accepted, which updates the readme on how to install the library.

Meanwhile, remove the installed pytorch-grad-cam package and try to install it with pip install grad-cam instead of pip install pytorch-grad-cam and try to import CAM as you were doing before, with

from pytorch_grad_cam import CAM

I hope that it works now!

from pytorch-grad-cam.

jacobgil avatar jacobgil commented on May 18, 2024

Hi,
How did you install the package?

Can you please try
pip install -e .
After cloning the repo.

The pypi repo is not updated yet with the latest version - I asked access from one of the contributers that openned it, and in the meanwhile I can't push updates.
If it won't solve soon I will probably upload it to pypi with another name.

from pytorch-grad-cam.

AshishAJ1994 avatar AshishAJ1994 commented on May 18, 2024

Running 'from pytorch_grad_cam import CAM' produces 'ImportError: cannot import name 'CAM' '

Facing the same issue.

from pytorch-grad-cam.

AshishAJ1994 avatar AshishAJ1994 commented on May 18, 2024

Hi,
How did you install the package?

Can you please try
pip install -e .
After cloning the repo.

The pypi repo is not updated yet with the latest version - I asked access from one of the contributers that openned it, and in the meanwhile I can't push updates.
If it won't solve soon I will probably upload it to pypi with another name.

Is this resolved yet?

from pytorch-grad-cam.

jacobgil avatar jacobgil commented on May 18, 2024

Not yet.
You can install in the meanwhile with
pip install -e .
after cloning the repository.

In the next week I will probably open a new pypi repo.

from pytorch-grad-cam.

SoroushF79 avatar SoroushF79 commented on May 18, 2024

Importing CAM after doing pip install grad-cam works. Thanks!

from pytorch-grad-cam.

jacobgil avatar jacobgil commented on May 18, 2024

Thanks! Closing, should be resolved now.

from pytorch-grad-cam.

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.