For the function Yolo boxes, it tells me my scores shape is wrong and I have no idea why:
scores[2] = 81.324005
boxes[2] = [-3.004828 3.7354143 1.6863731 3.1173077]
classes[2] = 44
scores.shape = (268,)
boxes.shape = (268, 4)
classes.shape = (268,)
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-105-2cab1199ef30> in <module>
16 assert type(classes) == EagerTensor, "Use tensorflow functions"
17
---> 18 assert scores.shape == (1789,), "Wrong shape in scores"
19 assert boxes.shape == (1789, 4), "Wrong shape in boxes"
20 assert classes.shape == (1789,), "Wrong shape in classes"
AssertionError: Wrong shape in scores
I have commented on each line of code about what I think the line is doing and the reasoning behind it, so if you see wrong logic, please correct me.
My code below:
# mentor edit: code removed to clear the course Honor Code.