Skip to content

Commit

Permalink
show_results uses passed dataloader (dl_idx or dl) (fastai#3554)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Warner <me@benjaminwarner.dev>
  • Loading branch information
2 people authored and kwsp committed Jan 25, 2022
1 parent ef9f633 commit 697128b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastai/learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def show_results(self, ds_idx=1, dl=None, max_n=9, shuffle=True, **kwargs):
if dl is None: dl = self.dls[ds_idx].new(shuffle=shuffle)
b = dl.one_batch()
_,_,preds = self.get_preds(dl=[b], with_decoded=True)
self.dls.show_results(b, preds, max_n=max_n, **kwargs)
dl.show_results(b, preds, max_n=max_n, **kwargs)

def show_training_loop(self):
indent = 0
Expand Down
Loading

0 comments on commit 697128b

Please sign in to comment.