The shape of mean and the standard deviation must be identical #1760
-
I have a problem for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I was able to solve the problem instead write this code tfc = TensorFlowClassifier(clip_values=clip_values, input_ph=_image_input, labels_ph=_target_ys, write this code tfc = TensorFlowClassifier(clip_values=clip_values, input_ph=_image_input, labels_ph=_target_ys, |
Beta Was this translation helpful? Give feedback.
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]))
)