Skip to content

BoundaryAttack ValueError: The shape of mean and the standard deviation must be identical. #1893

Answered by HuannnXu
HuannnXu asked this question in Q&A
Discussion options

You must be logged in to vote

I worked it out by "classifier = KerasClassifier(clip_values=(0, 255), model=model, preprocessing=(mean_imagenet, np.ones([224, 224, 3])))" instead of classifier = KerasClassifier(clip_values=(0, 255), model=model, preprocessing=(mean_imagenet, 1))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beat-buesser
Comment options

Answer selected by HuannnXu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants