Skip to content

The shape of mean and the standard deviation must be identical #1760

Discussion options

You must be logged in to vote

I was able to solve the problem
need to change the preprocessing instead

preprocessing=([mean_b, mean_g, mean_r], 1)

to

preprocessing=(np.array([mean_b, mean_g, mean_r]), np.array([1.0, 1.0, 1.0]))

instead write this code

tfc = TensorFlowClassifier(clip_values=clip_values, input_ph=_image_input, labels_ph=_target_ys,
output=_logits, sess=sess, loss=target_loss,
preprocessing=([mean_b, mean_g, mean_r], 1))

write this code

tfc = TensorFlowClassifier(clip_values=clip_values, input_ph=_image_input, labels_ph=_target_ys,
output=_logits, sess=sess, loss=target_loss,
preprocessing=(np.array([mean_b, mean_g, mean_r]), np.array([1.0, 1.0, 1.0]))
)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by beat-buesser
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