Thanks a lot @A_TF57 !
The following methodology works to make predictions on the test set when it was not initially given to the data
object :
- rerun
data=...
withtest_name='test'
:
data = ImageClassifierData.from_csv(PATH, 'train', f'{label_csv}', test_name='test', num_workers=4, val_idxs=val_idxs, suffix='.jpg', tfms=tfms, bs=bs)
-
run :
learn.set_data(data)
-
then, you can run :
log_preds,y = learn.TTA(is_test=True)