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

Feature/5555 add timm support #5898

Conversation

potipot
Copy link

@potipot potipot commented Feb 10, 2021

What does this PR do?

Fixes # (#5555) <- introduce support for timm scheduler and optimizer. Waiting for someone else I decided to try and do it myself. This is my first PR so looking forward for your comments.

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • 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? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified
  • Check that target branch and milestone match!

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #5898 (0a50bb4) into release/1.1.x (0a50bb4) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           release/1.1.x   #5898   +/-   ##
=============================================
  Coverage             94%     94%           
=============================================
  Files                134     134           
  Lines              10051   10051           
=============================================
  Hits                9407    9407           
  Misses               644     644           

@Borda
Copy link
Member

Borda commented Feb 10, 2021

@potipot pls set the target 1.2 as there won't be any releases in 1.1 cc: @tchaton; see our suggestions

Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

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

I am not that familiar with the timm library but I can see that it seems to be quite popular, so I think we should support it :]
Some other comments:

@@ -13,6 +13,7 @@
# limitations under the License.
from pytorch_lightning.utilities import rank_zero_warn
from pytorch_lightning.utilities.exceptions import MisconfigurationException
from timm.scheduler.scheduler import Scheduler as TimmScheduler
Copy link
Member

Choose a reason for hiding this comment

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

As timm is an extra feature, we need to make sure that the code can run even if the user does not have timm installed. Something like this should be done:
https://github.com/PyTorchLightning/pytorch-lightning/blob/0a50bb406fa41dfa6a0e2be52f531a9c81c87d00/pytorch_lightning/loggers/wandb.py#L30-L37

@@ -24,6 +24,7 @@
from pytorch_lightning.core.optimizer import LightningOptimizer
from pytorch_lightning.utilities import rank_zero_warn
from pytorch_lightning.utilities.exceptions import MisconfigurationException
import timm
Copy link
Member

Choose a reason for hiding this comment

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

Same as above comment

Base automatically changed from master to release/1.1.x February 11, 2021 14:30
@stale
Copy link

stale bot commented Feb 27, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://pytorch-lightning.readthedocs.io/en/latest/generated/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Slack. Thank you for your contributions.

@stale stale bot added the won't fix This will not be worked on label Feb 27, 2021
@stale
Copy link

stale bot commented Mar 5, 2021

This pull request is going to be closed. Please feel free to reopen it create a new from the actual master.

@stale stale bot closed this Mar 5, 2021
@jinwon-samsung
Copy link

How is this request going?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
won't fix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants