How to show bounding box pictures on test data without labels

in lesson 8 part 2, we can get validation data by the following code:

x,y = next(iter(md.val_dl))
learn.model.eval()
preds = to_np(learn.model(VV(x)))

but for test data without labels, How can I get them?
I got a error by the following code. Because there is no y.
x,y = next(iter(md.test_dl))
learn.model.eval()
preds = to_np(learn.model(VV(x)))

IndexError: index 2 is out of bounds for axis 0 with size 1

Thanks.

3 Likes