Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Learner.show_results uses passed dataloader via dl_idx or dl arguments #3554

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

warner-benjamin
Copy link
Collaborator

Changes Learner.show_results from being hardcoded to use the training dataloader's show_results to use the dataloader passed to Learner.show_results via dl_idx or dl arguments.

Resolves an issue when the train and valid dataloaders differ, which could result in the incorrect decodes being applied to valid inputs. For example, when training on image sub-patches and during validation combining patches to form a whole image.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jph00
Copy link
Member

jph00 commented Jan 19, 2022

Many thanks!

@jph00 jph00 merged commit 3b514e3 into fastai:master Jan 19, 2022
warner-benjamin added a commit to warner-benjamin/fastai that referenced this pull request Jan 19, 2022
kwsp pushed a commit to kwsp/fastai that referenced this pull request Jan 25, 2022
Co-authored-by: Benjamin Warner <me@benjaminwarner.dev>
@jph00 jph00 added the bug label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants