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 trainer support for datasets without a plot method #1585

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

adamjstewart
Copy link
Collaborator

Fixes #1551. See #1487 for discussion.

@gtgrp-user can you confirm this solves your issue? I never figured out how to test this in CI but it's obviously a bug and the fix is pretty simple.

@adamjstewart adamjstewart added this to the 0.4.2 milestone Sep 24, 2023
@github-actions github-actions bot added the trainers PyTorch Lightning trainers label Sep 24, 2023
@gtgrp-user
Copy link

I no longer have this issue, thanks.

@calebrob6
Copy link
Member

Datamodule.plot returns an Optional[Figure], is the reason why mypy doesn't catch this because summary_writer.add_figure doesn't know about types?

@adamjstewart
Copy link
Collaborator Author

Yes: pytorch/pytorch#110021

I'll consider this as proper testing 😄

@adamjstewart adamjstewart merged commit 3b7ee11 into microsoft:main Sep 25, 2023
20 checks passed
@adamjstewart adamjstewart deleted the fixes/no-dataset-plot branch September 25, 2023 16:40
@calebrob6
Copy link
Member

😆

@adamjstewart adamjstewart modified the milestones: 0.4.2, 0.5.0 Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trainers PyTorch Lightning trainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encountered 'NoneType' object has no attribute 'canvas' error while training a semantic segmentation model
3 participants