Kaushik B
7b0d1183db
Update `gpus` flag with `accelerator` and `devices` flag ( #12156 )
...
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-03-23 19:52:12 +00:00
Akash Kwatra
7e2f9fbad5
Refactor codebase to use `trainer.loggers` over `trainer.logger` when needed ( #11920 )
2022-02-25 16:01:04 -08:00
edward-io
87bd54aedf
fix typos ( #11937 )
2022-02-16 17:27:51 -08:00
Rohit Gupta
581bf7f2f2
Deprecate `on_epoch_start/on_epoch_end` hook ( #11578 )
2022-02-07 14:15:27 +00:00
ananthsub
a64438c897
Centralize rank_zero_only utilities into their own module ( #11747 )
...
* Centralize rank_zero_only utilities into their own module
Fixes #11746
* PossibleUserWarning
* Update test_warnings.py
* update imports
* more imports
* Update CHANGELOG.md
* Update mlflow.py
* Update cli.py
* Update api_references.rst
* Update meta.py
* add deprecation tests
* debug standalone
* fix standalone tests
* Update CHANGELOG.md
2022-02-07 08:09:55 +00:00
Carlos Mocholí
3b699030d5
Modernize the ImageNet example ( #11691 )
...
Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-02-02 21:48:49 +00:00
Adrian Wälchli
3cd65b592b
Lightning Lite Examples ( #9987 )
...
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: SeanNaren <sean@grid.ai>
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: four4fish <88516121+four4fish@users.noreply.github.com>
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
Co-authored-by: Pietro Lesci <61748653+pietrolesci@users.noreply.github.com>
2021-11-02 08:04:29 +00:00
Justus Schock
e2b1967b38
Fix Imagenet example ( #10179 )
2021-10-29 12:05:05 +00:00
Kaushik B
56bc55db71
Update strategy flag in docs ( #10000 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
2021-10-20 21:02:53 +05:30
Mauricio Villegas
1f09cf2432
Fixed use of LightningCLI in computer_vision_fine_tuning.py example ( #9934 )
2021-10-16 17:04:02 +01:00
ananthsub
28fc8d2016
Add `enable_model_summary` flag and deprecate `weights_summary` ( #9699 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
2021-10-13 17:20:54 +05:30
Danielle Pintz
b3a5c7f442
Add `enable_progress_bar` to Trainer constructor ( #9664 )
2021-09-24 22:53:31 -07:00
Benjamin Etheredge
73e53e5b82
Fixing order of operations bug in Qnet ( #9621 )
2021-09-21 22:25:12 +00:00
Jirka Borovec
6e124e7207
CI: precommit - docformatter ( #8584 )
...
* CI: precommit - docformatter
* fix deprecated
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-06 12:49:09 +00:00
Carlos Mocholí
0dfc6a18bd
Call any trainer function from the `LightningCLI` ( #7508 )
2021-08-28 04:43:14 +00:00
Jirka Borovec
f67892ea96
CI: yesqa ( #8564 )
...
* add yesqa
* fix flake8
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-02 16:05:56 +00:00
Carlos Mocholí
e63968ab88
Add `pyupgrade` to `pre-commit` ( #8557 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-07-26 14:38:12 +02:00
Carlos Mocholí
a64cc37394
Replace `yapf` with `black` ( #7783 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-07-26 13:37:35 +02:00
Carlos Mocholí
ae1fd6a201
Unblock GPU CI ( #8456 )
...
* Debug
* Increase SHM size
* Debug
* Refactor MNIST imports
* Undo debugging
* Prints
2021-07-19 09:41:18 +02:00
deepsource-autofix[bot]
b2ba2e6333
Use literal syntax instead of function calls to create data structure ( #8406 )
2021-07-14 10:32:13 +00:00
deepsource-autofix[bot]
03154eb30a
Refactor unnecessary `else` / `elif` when `if` block has a `return` statement ( #8156 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2021-06-28 15:27:41 +05:30
Kaushik B
92024df20e
Pt 1.9 breaking fix: __iter__ type hint ( #7993 )
2021-06-15 21:57:15 +00:00
Florian Müller-Fouarge
d4d959b342
Call `super().__init__()` in `MilestonesFinetuning` example ( #7398 )
2021-05-06 21:11:36 +05:30
Mauricio Villegas
78a6fd5588
Example and documentation for LightningCLI linking model and data arguments ( #7299 )
...
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-05-03 20:45:46 +00:00
amisev
6b29211372
Fixed bug: replaced bce_loss_with_logits with bce_loss ( #7096 )
...
* Fixed bug: replaced bce_loss_with_logits with bec_loss
* Fixed bug: removed sigmoid activation from forward pass
* switched names for scores and logits
Co-authored-by: Alexey Misev <amisev@fb.com>
Co-authored-by: Alexey Misev <alexey@MacBook-Pro-Natalia.local>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-04-28 09:06:10 +00:00
Soham Roy
71b4611c64
Update default gym env version to CartPole-v1 ( #7079 )
...
Version v1 generates a better baseline with higher max_episodes and reward_threshold attained.
changed_params -->
register(
id='CartPole-v1',
entry_point='gym.envs.classic_control:CartPoleEnv',
max_episode_steps=500,
reward_threshold=475.0,
)
2021-04-18 12:28:04 +02:00
Jirka Borovec
f2021ed225
docs: lightning-bolts ( #6967 )
2021-04-13 18:49:48 +00:00
Carlos Mocholí
6a7f011495
Reuse _TORCHVISION_AVAILABLE ( #6976 )
2021-04-13 18:33:32 +02:00
Jirka Borovec
b341b53f70
deprecate metrics pkg ( #6505 )
...
* deprecate metrics
* examples
* req
* docs
* Apply suggestions from code review
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
* pep8
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-03-15 14:39:38 +00:00
Eric Cousineau
e886d55ac1
argparse: Add use_argument_group=True ( #6088 )
...
* argparse: Add inplace option
Replicate in GAN model
* datamodule: Deduplicate logic w/ argparser utilities
* Update pl_examples/domain_templates/generative_adversarial_net.py
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
* Keep docstrings
* Correct name
* Whitespace
* Consistency
* fix weird type stuff
* try alt - use_argument_group
* fix syntax + lint
* fix ci errs
* fix ci
* change examples... still failing w/ "unrecognized arguments: --batch_size"
* address review
* mnist_datamodule: add some docstrings
* argparse: check cls or cls.__init__ for param
didn't capture issue, but meh
* fix lint
* fix no-doc edge case
* address review
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
2021-03-11 10:50:49 -05:00
Kaushik B
079fe9bc09
Hotfix for torchvision ( #6476 )
2021-03-11 16:49:48 +05:30
Jirka Borovec
e84854264f
CI: fix examples - patch download MNIST ( #6357 )
...
* patch download
* CI
* isort
* extra
2021-03-05 16:50:21 +00:00
Adrian Wälchli
bc577ca792
fix duplicate console logging bug v2 ( #6275 )
...
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-03-02 15:17:55 +05:30
Akihiro Nitta
5cf892b5f6
Fix typo ( #6178 )
2021-02-24 10:14:25 -05:00
chaton
141316fb29
[BugFix] Resolve bugs in computer_vision_fine_tuning.py example ( #5985 )
...
* update the script to use DataModule
* add message at for the frozen parameters
* add message about trainable parameters
* resolve flake8
2021-02-16 21:01:04 +00:00
Jihoon Lee
d1200af358
fix model arguements ( #5653 )
2021-02-05 21:40:40 +01:00
chaton
e425bf3ba9
[BugOnFeat] Resolve bug with Finetuning ( #5744 )
...
* resolve bug + add doc
* Update pytorch_lightning/callbacks/finetuning.py
* resolve bug
* start adding more test
* add more tests for finetuning callback functions
* rename to flatten_modules
* resolve doc
* Update pytorch_lightning/callbacks/finetuning.py
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
* resolve comments
* remove update on BoringModel
* update on comments
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-02-04 18:36:54 +00:00
rohitgr7
a37416843b
Fix sync
...
resolve wrong merge
tpu
yapf
2021-02-03 20:11:35 +01:00
Sidhant Sundrani
2b6738832b
fix argparse conflicting options error ( #5569 )
...
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-02-03 19:41:46 +01:00
Sidhant Sundrani
f72d93974c
Fix command line run for refinforce_learn_qnet in pl_examples ( #5414 )
...
* fix wrong argument in argparse
* remove wrong default arg in argparser
* disable add help argparse
2021-02-03 19:41:46 +01:00
Jirka Borovec
21d313edc5
yapf examples ( #5709 )
2021-01-30 10:17:12 +00:00
Jirka Borovec
2846322f60
fix docs render ( #5610 )
2021-01-25 20:21:00 -05:00
Sidhant Sundrani
b5e7e030d4
add promxial policy optimization template to pl_examples ( #5394 )
...
* add ppo rl lightning template
* flake
* import gym without try as in qnet example
* fix import format
* remove torch.optim import, not required
* fix import format isort
* add trainer argparse
* change name of trajectory collection method
* add repo in references
* fix typo in comments
* use isinstance to verify actionspace type
* use fstring
* deduplication of logic code
* rename unused forloop variable
* use pl.seed_everything instead
* remove unused numpy import
* format string printed on error
* fix typo in comments
Co-authored-by: chaton <thomas@grid.ai>
2021-01-09 12:49:11 -05:00
chaton
48718d7ce7
Feat: Add BackboneLambdaFinetunningCallback ( #5377 )
...
* Feat: Add BackboneLambdaFinetunningCallback
* update changelog
* resolve pep8 and update changelog
* add finetunning example
* resolve example
* iremove milestones from model
* iupdate
* update
* Update pytorch_lightning/callbacks/__init__.py
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
* Update pytorch_lightning/callbacks/__init__.py
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
* update
* add comments
* resolve test
* Update pytorch_lightning/callbacks/finetuning.py
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* Update tests/trainer/logging/test_logger_connector.py
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* update on comments
* resolve merge
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2021-01-08 16:33:05 -05:00
Jirka Borovec
beb8cacf1c
fix formatting - flake8 + isort
2021-01-06 21:31:48 +01:00
J. Sebastian Paez
0e8ec93b28
black formatting and migrated to self.log logging in finetuning example ( #5229 )
...
* black formatting and migrated to self.log logging
* Apply suggestions from code review
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* migrated to accuracy in the metrics package
migrated to accuracy in the metrics package
* removed trailing whitespace
* Apply suggestions from code review
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
(cherry picked from commit 17a0784c5e
)
2021-01-06 12:49:31 +01:00
Jirka Borovec
53b0cb910b
update isort config ( #5335 )
...
* update isort config
* apply
(cherry picked from commit 724f1051f0
)
2021-01-06 12:49:23 +01:00
Akihiro Nitta
abc690d720
Apply isort to `pl_examples/` ( #5291 )
...
* Remove examples from isort ignore list
* Apply isort
(cherry picked from commit 0c7c9e8540
)
2021-01-06 12:47:53 +01:00
Jirka Borovec
74d0652164
flake8 ++
2021-01-05 09:58:37 +01:00
Jirka Borovec
2438d7459b
add doctests for example 2/n segmentation ( #5083 )
...
* draft
* fix
* drop folder
Co-authored-by: chaton <thomas@grid.ai>
2021-01-05 09:58:37 +01:00