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

Revision of MNIST module #873

Merged
merged 21 commits into from
Sep 23, 2022
Merged

Conversation

matsumotosan
Copy link
Contributor

@matsumotosan matsumotosan commented Aug 24, 2022

What does this PR do?

Fixes part of #839

  • pl_bolts.models.mnist_module.LitMNIST
  • pl_bolts.models.mnist_module.cli_main
  • pl_bolts.tests.models.test_mnist_templates.test_mnist
  • pl_bolts.tests.callbacks.test_data_monitor.test_base_log_interval_override
  • pl_bolts.tests.callbacks.test_data_monitor.test_base_log_interval_fallback

Summary

  • Remove dataloader related methods from LitMNIST and use MNISTDataModule instead
  • Add shared step to LitMNIST
  • Add docstring to LitMNIST
  • Fix test_mnist
  • Fix test_data_monitor tests by initializing MNISTDataModule inside test case since dataloaders were removed from LitMNIST

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests? [not needed for typos/docs]
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@github-actions github-actions bot added the model label Aug 24, 2022
@matsumotosan matsumotosan changed the title MNIST module Revision of MNIST module Aug 24, 2022
@otaj otaj mentioned this pull request Aug 25, 2022
@matsumotosan matsumotosan marked this pull request as ready for review August 30, 2022 14:19
Copy link
Contributor

@otaj otaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @matsumotosan, thank you for the PR! It looks good, I have just one small nit

tests/callbacks/test_data_monitor.py Outdated Show resolved Hide resolved
tests/callbacks/test_data_monitor.py Outdated Show resolved Hide resolved
pl_bolts/models/mnist_module.py Outdated Show resolved Hide resolved
@otaj otaj self-assigned this Sep 15, 2022
@otaj otaj mentioned this pull request Sep 21, 2022
13 tasks
@matsumotosan
Copy link
Contributor Author

Hi @otaj, I have pulled in the changes from #890 and it seems to be working, but the tests are failing for macOS for test_mnist and I am not quite sure how to fix it. Do you mind taking a look?

@otaj
Copy link
Contributor

otaj commented Sep 23, 2022

Hi, we need to silence one warning on mac, because the machine has multiple CPU cores. I thought I fixed it in 9960a75, but it seems, I forgot the format for silencing a warning is trying to match the beginning of the message. It should be fixed by now, the tests pass on my machine with multiple CPU cores, we'll see if the tests pass on the CI too :)

@otaj otaj enabled auto-merge (squash) September 23, 2022 15:17
@mergify mergify bot added the ready label Sep 23, 2022
auto-merge was automatically disabled September 23, 2022 21:02

Head branch was pushed to by a user without write access

@Borda Borda merged commit ac98469 into Lightning-Universe:master Sep 23, 2022
@matsumotosan matsumotosan deleted the mnist_module branch September 24, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants