IBM / Autozoom-Attack

Codes for reproducing query-efficient black-box attacks in “AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks” ​​​​, published at AAAI 2019
https://arxiv.org/abs/1805.11770
Apache License 2.0
56 stars 22 forks source link

BUG report : TypeError: unhashable type 'slice' , orz plz #19

Open bambooboy opened 3 years ago

bambooboy commented 3 years ago

How to fix this error , help ~ , cifar10 zoo_ae attack,plz

Traceback (most recent call last): File "main.py", line 320, in main(args) File "main.py", line 117, in main codec.load_codec("D:\code\Autozoom-Attack-master\codec/cifar10_2") File "D:\code\Autozoom-Attack-master\setup_codec.py", line 142, in load_codec config2 = config[1::] TypeError: unhashable type: 'slice'

bambooboy commented 3 years ago

plz

bambooboy commented 3 years ago

plz

pinyuchen commented 3 years ago

Hi @bambooboy What Tensorflow version are you using? Can you try using TF 1.6?

bambooboy commented 3 years ago

thank you @pinyuchen i use the TF 1.13.2, i can't use 1.6.0 because of cuda version, so is it a version problem ?

pinyuchen commented 3 years ago

I believe so. We didn't test on later TF versions.

bambooboy commented 3 years ago

thanks the reply, i'll try something else; have a nice day;