You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the cam_example and ran it. It stopped at remove_hooks().
I checked previous issues, only to find the change of name.
I ran a jupyter demo. It worked fine with cam, but it didn't have a remove_hooks() method as well.
Was the method dropped already?
Code snippet to reproduce the bug
cam_extractor.remove_hooks()
Error traceback
Traceback (most recent call last):
File "cam_exp.py", line 135, in <module>
main(args)
File "cam_exp.py", line 84, in main
extractor.remove_hooks()
AttributeError: 'CAM' object has no attribute 'remove_hooks'
Environment
torchcam 0.3.1 0 frgfm
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue!
I just checked and I cannot reproduce this locally on 0.3.2, nor on Colab (you can use the button in the documentation to open the notebook in Colab https://frgfm.github.io/torch-cam/notebooks.html)
The change was introduced in #143 and wasn't effective in v0.3.1. Thus you only need to upgrade to v0.3.2 (latest stable release) and you should be fine :)
Bug description
I downloaded the cam_example and ran it. It stopped at remove_hooks().
I checked previous issues, only to find the change of name.
I ran a jupyter demo. It worked fine with cam, but it didn't have a remove_hooks() method as well.
Was the method dropped already?
Code snippet to reproduce the bug
cam_extractor.remove_hooks()
Error traceback
Environment
torchcam 0.3.1 0 frgfm
The text was updated successfully, but these errors were encountered: