You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I can work when I train, and train the .h5 model, but when testing with YOLO_pred.py ,the error is reported as follows: Using a tf.Tensor as a Python bool is not allowed. Use if t is not None: instead Of if t: to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.
The text was updated successfully, but these errors were encountered:
Hello, I can work when I train, and train the .h5 model, but when testing with YOLO_pred.py ,the error is reported as follows: Using a
tf.Tensor
as a Pythonbool
is not allowed. Useif t is not None:
instead Ofif t:
to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.The text was updated successfully, but these errors were encountered: