Trusted-AI/adversarial-robustness-toolbox

ZooAttack issues

Mvp-Evan opened this issue · 2 comments

When I use BlackBoxClassifier to box my predict function like this:
classifier = BlackBoxClassifier(predict_fn=model_func, input_shape=input_shape, nb_classes=class_num, clip_values=(0, 255))

And I use ZooAttack to generate adversarial example like this:
attack = ZooAttack(classifier=classifier)
x_test_adv = attack.generate(x=x_test, y=y)

But there are some issues I have no idea, log like this:
AttributeError: 'BlackBoxClassifier' object has no attribute 'channels_first'

ART version: 1.14.0
OS: MacOS, M1 chip

It's work when I use BlackBoxClassifierNeuralNetwork() instead of BlackBoxClassifier()