I am using notebook 8 and 9 for Kaggle RSNA competition.
Since, output is bounding boxes with variable lengths, I could not use
preds = learn.predict(is_test=True)
So I used following code for obtaining test predictions
dl = md.test_dl
for *x,y in iter(dl):
batch =learn.model(*VV(x))
b_clas,b_bb = batch
I could all predictions for test dataset.
However, I am not sure in which order test dataloader loaded files. Thus, I was not sure about one-to-one relation between files in test dataset and obtained predictions.
Is there any way of fetching filenames for each batch of files from md.test_dl?
Appreciate suggestions.