tf_cnnvis icon indicating copy to clipboard operation
tf_cnnvis copied to clipboard

NameError: name 'activation_visualization' is not defined

Open hiSingh248 opened this issue 7 years ago • 3 comments

After successful installation of tf_cnnvis, I was able to import tf_cnnvis but running example 1 using python 3 in jupyter notebook throws the following error: NameError: name 'activation_visualization' is not defined I have followed the same steps as given in readMe file. Is there anything that needs to be done after installation to be able to use activation and deactivation functions?

hiSingh248 avatar Oct 12 '18 23:10 hiSingh248

Nope, not unless you have 2 python versions on your machine and you ran setup.py using python 2 and the jupyter notebook is trying to import using python3.

falaktheoptimist avatar Oct 15 '18 13:10 falaktheoptimist

Thanks, @falaktheoptimist for the response. I have 2 python versions but I executed setup.py file using python 3 which is why I am able to import tf_cnnvis module. Since my Jupyter notebook kernel is also using python3 and I am still not able to use inbuilt functions, I am not able to figure out the issue. Any suggestion will be helpful.

issue

hiSingh248 avatar Oct 25 '18 23:10 hiSingh248

If you were able to run the command from tf_cnnvis import * without any error and are still getting the error saying activation_visualization is not defined, then I'm not sure what could be the error here. Please post the error log here - maybe that would help with the debugging

falaktheoptimist avatar Oct 27 '18 11:10 falaktheoptimist