tensorflow / lucid

A collection of infrastructure and tools for research in neural network interpretability.
Apache License 2.0
4.65k stars 655 forks source link

inner() got an unexpected keyword argument 'cossim_pow' #209

Open FSet89 opened 4 years ago

FSet89 commented 4 years ago

I get the following error when I run feature_inversion:

File "/usr/local/lib/python2.7/dist-packages/lucid/recipes/caricature.py", line 34, in feature_inversion return caricature(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/lucid/recipes/caricature.py", line 50, in caricature for i, layer in enumerate(layers) TypeError: inner() got an unexpected keyword argument 'cossim_pow'

I am using python2, tensorflow-gpu 1.12.0 and the most recent version of Lucid

camoconnell commented 4 years ago

is the decorator - @wrap_objective above the function your running? try changing it to @wrap_objective()

kevinj22 commented 4 years ago

This above fixed worked for me i.e @objectives.wrap_objective -> @objectives.wrap_objective()