I have a type error in my mask code that I can’t understand.
Some to guide me please !
ipython-input-15-14a23f211c10> in yolo_filter_boxes(boxes, box_confidence, box_class_probs, threshold)
35 # same dimension as box_class_scores, and be True for the boxes you want to keep (with probability >= threshold)
36 ## (≈ 1 line)
—> 37 filtering_mask = box_class_scores < threshold
38
39 # Step 4: Apply the mask to box_class_scores, boxes and box_classes
/opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/gen_math_ops.py in less(x, y, name)
4909 _result = pywrap_tfe.TFE_Py_FastPathExecute(
4910 _ctx._context_handle, tld.device_name, “Less”, name, tld.op_callbacks,
→ 4911 x, y)
4912 return _result
4913 except _core._NotOkStatusException as e:
TypeError: Cannot convert 0.5 to EagerTensor of dtype int64
ID labo: spkvnyiwnnox