Closed borisdayma closed 4 years ago
I tried a few things:
self.tls
or equivalent from TfmdLists
but I didn't find an equivalentTfmdDL
from TfmdLists
using the dataloaders
method but it seems a custom one would be needed so we get something like dl.new(self.subset(1)[idxs])
I looked at the predict
function to process the items one at a time but I could not make it work with a learner built from TfmdLists.
When using
TfmdLists
, WandbCallback returns an error at this line.The reason is that
self.dls.valid_ds
isTfmdLists
so has notls
attribute (vsDatasets
which is expected here).At this step, we are trying to create a dataloader with specified idxs for future inference.
On another note, a few other issues are related to this callback:
valid_dl
may have a different batch size (maybe we should get the one from the fit loop) than the number of predictions (default to 36) so we would have to make sure we either run it a few times (if bs < n_preds) or check we have all results.