raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.97k stars 664 forks source link

Has `Jitter()` been removed? #161

Closed zixuanweeei closed 5 years ago

zixuanweeei commented 5 years ago

I ran the tutorial in the section of Generating animated gif of optimization progress, and it told me that Jitter() cannot be imported.

keisen commented 5 years ago

Can you tell us the versions of libraries such as Python, Keras, Backend of Keras and keras-vis? And will you please paste the error stacktrace here?

keisen commented 5 years ago

Same problem: #155

zixuanweeei commented 5 years ago

This is my error traceback.

Using TensorFlow backend.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-2be6919386a4> in <module>()
      1 from vis.losses import ActivationMaximization
      2 from vis.regularizers import TotalVariation, LPNorm
----> 3 from vis.modifiers import Jitter
      4 from vis.optimizer import Optimizer
      5 

ModuleNotFoundError: No module named 'vis.modifiers'
keisen commented 5 years ago

@zxweeei , Thank you. I created a PullRequest for fixing the problem. For details, see PRs/ #162 .

Selimonder commented 5 years ago

ModuleNotFoundError Traceback (most recent call last)

in () 1 from vis.losses import ActivationMaximization 2 from vis.regularizers import TotalVariation, LPNorm ----> 3 from vis.modifiers import Jitter 4 from vis.optimizer import Optimizer 5 ModuleNotFoundError: No module named 'vis.modifiers' --------------------------------------------------------------------------- still experiencing this issue (0.4.1)
senaras commented 5 years ago

some of the modules are moved, check this link: https://github.com/raghakot/keras-vis/blob/master/examples/vggnet/activation_maximization.ipynb