lucid icon indicating copy to clipboard operation
lucid copied to clipboard

inner() got an unexpected keyword argument 'cossim_pow'

Open FSet89 opened this issue 6 years ago • 2 comments

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

FSet89 avatar Nov 06 '19 09:11 FSet89

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

camoconnell avatar Nov 28 '19 03:11 camoconnell

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

kevinj22 avatar Dec 01 '19 18:12 kevinj22