gongzhitaao / tensorflow-adversarial

Crafting adversarial images
MIT License
223 stars 70 forks source link

Error in exp02.py #1

Closed akshayag closed 6 years ago

akshayag commented 7 years ago

TypeError: call() got an unexpected keyword argument 'logits'

gongzhitaao commented 7 years ago

Could you please provide more information? I didn't find logits argument in ex_02.py, if this is what you referred to. I think I run it and it works.

Poomathi commented 6 years ago

Hi - Even I got the same error in ex_02.py. Traceback (most recent call last): File "RMLtgma.py", line 101, in print('\nTraining model') File "/home/pduraisamy/test/adversarial/tgsm.py", line 56, in tgsm name='tgsm') File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2623, in while_loop result = context.BuildLoop(cond, body, loop_vars, shape_invariants) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2456, in BuildLoop pred, body, original_loop_vars, loop_vars, shape_invariants) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2406, in _BuildLoop body_result = body(*packed_vars_for_body) File "/home/pduraisamy/test/adversarial/tgsm.py", line 46, in _body ybar, logits = model(x_adv, logits=True) File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 602, in call output = self.call(inputs, **kwargs) TypeError: call() got an unexpected keyword argument 'logits'

gongzhitaao commented 6 years ago

I got it, I fixed in my local repo without push it. Should be fixed in ec3d382.

Poomathi commented 6 years ago

Thanks. It works now. Really appreciate your quick response.