Traceback (most recent call last):
File "<stdin>", line 18, in <module>
File "<stdin>", line 14, in softmax
AttributeError: 'float' object has no attribute 'reshape'
This is because bounding_boxes[:, TINY_YOLO_V2_CLASSES:] produced a float in this case instead of a numpy array with size 1x1.
I think this is a bug? As slices, even if they produce an array with one value, should still be numpy arrays.
I think I found a bug with slicing arrays:
Works and outputs
array([2, 1, 0], dtype=int16)
.Now if I modify the array to be:
You get:
This is because
bounding_boxes[:, TINY_YOLO_V2_CLASSES:]
produced a float in this case instead of a numpy array with size 1x1.I think this is a bug? As slices, even if they produce an array with one value, should still be numpy arrays.