lucid
lucid copied to clipboard
inner() got an unexpected keyword argument 'cossim_pow'
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
is the decorator - @wrap_objective above the function your running? try changing it to @wrap_objective()
This above fixed worked for me i.e @objectives.wrap_objective -> @objectives.wrap_objective()