Hi,
I’m getting an error when trying to plot an image and its bounding box:
def plot_image_from_batch(X, y, img_idx):
class_name = labels[y[0][img_idx]]
bbox = y[1][img_idx]
plot_image(X[img_idx], [[*bbox, class_name]])
plot_image_from_batch(X, y_class, y_bbox, 0)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-51-68472681ff85> in <module>
3 bbox = y[1][img_idx]
4 plot_image(X[img_idx], [[*bbox, class_name]])
----> 5 plot_image_from_batch(X, y_class, y_bbox, 0)
TypeError: plot_image_from_batch() takes 3 positional arguments but 4 were given