Hi, I was having the followed error running your code:
TypeError Traceback (most recent call last)
in
7 for i in range(len(anchors)):
8 # decode the output of the network
----> 9 boxes += decode_netout(prediction[i][0], anchors[i], obj_thresh, input_h, input_w, len(anchors), scales_x_y[i])
10
11 print("nb boxes detected; ",len(boxes))
in decode_netout(netout, anchors, obj_thresh, net_h, net_w, anchors_nb, scales_x_y)
38
39 boxes = []
---> 40 netout[..., :2] = _sigmoid(netout[..., :2]) # x, y
41 netout[..., :2] = netout[..., :2]scales_x_y - 0.5(scales_x_y - 1.0) # scale x, y
42
TypeError: 'tensorflow.python.framework.ops.EagerTensor' object does not support item assignment
the "prediction" is the 'yhat' in your original notebook.